25.07.2012, 21:35
What you exactly want to do?
This will give the killer +1 score each time he kill someone.
And who die will lose -1 score
This will give the killer +1 score each time he kill someone.
And who die will lose -1 score
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) -1);
return 1;
}