22.07.2015, 16:09
Quote:
Sure u can enable/disable kill list , all what u need to do is to make new filterscript and delete this code from gamemode
Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); return 1; } Код:
#include <a_samp> public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); return 1; } Код:
/rcon login "yourpassword" /rcon unloadfs "filterscript name" |
Quote:
Код:
static bool:DeathList; public OnGameModeInit() { DeathList = true; return 1; } CMD:togdeath(playerid, params[]) { if (!DeathList) { DeathList = true; SendClientMessage(playerid, -1, "ON"); } else { DeathList = false; SendClientMessage(playerid, -1, "OFF"); for (new i; i != 5; i++) { SendDeathMessage(INVALID_PLAYER_ID, INVALID_PLAYER_ID, 200); } } return 1; } public OnPlayerDeath(playerid, killerid, reason) { if (DeathList) SendDeathMessage(killerid, playerid, reason); return 1; } |