18.06.2012, 12:20
Quote:
Hey when a Player do /kill, it gives money to them too
![]() |
Код:
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; }