15.06.2010, 20:38
How do I make it so that if you kill someone you gain 1000 dollars?
GivePlayerMoney(killerid,1000);
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid != INVALID_PLAYER_ID)
{
GivePlayerMoney(killerid,1000);
}
return 1;
}
|
Originally Posted by DJDhan
If you die from suicide, the killerid is INVALID_PLAYER_ID. It's not just nothing when you die from suicide.
|