22.10.2013, 18:20
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(IsPlayerInAnyVehicle(playerid))
{
DestroyVehicle(GetPlayerVehicleID(playerid));
}
UFO[playerid] = false;
if(killerid != INVALID_PLAYER_ID)
{
new string[64];
format(string,sizeof(string),"[Kill:]{ffffff} O jogador {2CF52C}%s{ffffff} morreu.",GetPlayerNameEx(playerid));
SendClientMessageToAll(COLOR_GREEN,string);
PlayerInfo[playerid][Deaths]++;
}
return 1;
}