10.09.2011, 19:33
pawn Код:
new
Kills[MAX_PLAYERS],
Deaths[MAX_PLAYERS]
;
public OnPlayerConnect(playerid)
{
SetPlayerScore(playerid, 0);
Deaths[playerid] = 0, Kills[playerid] = 0;
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
Deaths[playerid] ++;
if(killerid != INVALID_PLAYER_ID) Kills[killerid] ++, SetPlayerScore(killerid, Kills[killerid]);
return 1;
}