How do I make the killer get cash after they killed someone?
#1

The title says it all, how do I make it to where the killer gets cash when they kill someone?
Reply
#2

Quote:

public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid, 1000);
return 1;
}

1234
Reply
#3

Don't forget to check if the killer is valid.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
     if (killerid != INVALID_PLAYER_ID)
     {
        GivePlayerMoney(killerid, 1000);
     }
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)