17.06.2010, 03:58
Quote:
Originally Posted by Giacomand
pawn Код:
|
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
// Added check for INVALID_PLAYER_ID and cleaned up the code:
if(killerid != INVALID_PLAYER_ID && !PlayerIsInDM[killerid])
{
new
sMsg[128];
GetPlayerName(killerid, sMsg, MAX_PLAYER_NAME);
format(sMsg, sizeof(sMsg), "KICKED: %s has been auto kicked by console.", sMsg);
SendClientMessageToAll(COLOR_RED, sMsg);
Kick(killerid);
}
}