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;
}
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; }
Код:
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; } |
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(killerid, random(30000 - 10000) + 10000);}//Randomizes the amount of cash the person gets, 20000 - 30000
return 1;
}