22.07.2015, 15:57
Код:
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; }