17.06.2012, 16:02
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID) SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); //If not invalid killerid (not a vehicle, etcetra), gets current score and adds one to the killer.
GivePlayerMoney(playerid, random(30000 - 10000) + 10000);//Randomizes the amount of cash the person gets, 20000 - 30000
return 1;
}
Explanation of the code is shown in the code.