Это просто фильтрскрипт, что позволяет RCON администратора для включения / выключения DeathMatching для игроков Когда кто-то игрок DeatMatch, он удаляет все его оружие и штрафы ему 5000 $, и игрок, который получил DeathMatched, он / она собирается респаун на последнее место, где он / она мертва! и возврате ему 5000 $
Команды Для RCON Администраторы /EnableDM /DisableDM
Code
// DEATHMATCH CONTROL // THIS SCRIPT MADE BY FRE$HKIDD, IT'S NOT AVALAIBLE TO STEAL THIS SCRIPT!! OR RELEASE IT ANYWHERE!!!! //
#include <a_samp> new DM = 1; new DMed[MAX_PLAYERS]; new Float:DeathPosX[MAX_PLAYERS]; new Float:DeathPosY[MAX_PLAYERS]; new Float:DeathPosZ[MAX_PLAYERS]; #if defined FILTERSCRIPT
public OnFilterScriptInit() { print("\n======================================"); print(" DEATHMATCH CONTROL By Fre$hKidd "); print("========================================\n"); return 1; }
public OnFilterScriptExit() { return 1; }
#else
main() { print("\n----------------------------------"); print(" DEATHMATCH CONTROL By Fre$hKidd "); print("----------------------------------\n"); }
#endif
public OnPlayerDeath(playerid, killerid, reason) { if (DM == 0) { SendClientMessage(killerid,0xFF0000FF,"DeatMatch Isn't Allowed! , you have been forced to remove all your weapons!"); SendClientMessage(killerid,0xFF0000FF,"And you have been fined 5000$ for DeathMatching"); GivePlayerMoney(killerid,-5000); ResetPlayerWeapons(killerid); new Float:pX, Float:pY, Float:pZ; GetPlayerPos(playerid, pX, pY, pZ); DeathPosX[playerid] = pX; DeathPosY[playerid] = pY; DeathPosZ[playerid] = pZ; SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]); SetPlayerCameraPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]+5); SetPlayerCameraLookAt(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]); DMed[playerid] = 1; return 1; } return 0; }
public OnPlayerSpawn(playerid) { if (DMed[playerid] == 1) { DMed[playerid] = 0; SendClientMessage(playerid,0xB1C8FBAA,"You have been Re-Spawned on your last place because you were DeathMatched !"); SendClientMessage(playerid,0xB1C8FBAA,"Refuned 5000$ !"); GivePlayerMoney(playerid, 5000); SetPlayerPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]); SetPlayerCameraPos(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]+5); SetPlayerCameraLookAt(playerid,DeathPosX[playerid],DeathPosY[playerid],DeathPosZ[playerid]); return 1; } return 0; }
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/enabledm", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) { SendClientMessageToAll(0xFF6347AA,"DeathMatch Has been enabled for all!"); DM = 1; return 1; } return SendClientMessage(playerid,0xFF6347AA,"You aren't RCON Admin !"); }
if (strcmp("/disabledm", cmdtext, true, 10) == 0) { if(IsPlayerAdmin(playerid)) { SendClientMessageToAll(0xFF6347AA,"DeathMatch Has been disabled for all!"); DM = 0; return 1; } return SendClientMessage(playerid,0xFF6347AA,"You aren't RCON Admin !"); } return 0; }
// DEATHMATCH CONTROL // THIS SCRIPT MADE BY FRE$HKIDD, IT'S NOT AVALAIBLE TO STEAL THIS SCRIPT!! OR RELEASE IT ANYWHERE!!!! //