If player kills player [ REP + ]
#4

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    {
       // Award $1000 to the killer
       GivePlayerMoney(killerid, 1000);
       SendClientMessage(killerid, -1, "You have been awarded $1000 for the kill.");
    }
 
    // Take $500 from the player who died.
    GivePlayerMoney(playerid, -500);
}
https://sampwiki.blast.hk/wiki/Function:GivePlayerMoney
Reply


Messages In This Thread
If player kills player [ REP + ] - by _GHT_MarK445 - 11.03.2015, 22:05
Re: If player kills player [ REP + ] - by AIped - 11.03.2015, 22:15
Re: If player kills player [ REP + ] - by Smileys - 11.03.2015, 22:34
Re: If player kills player [ REP + ] - by JaydenJason - 11.03.2015, 22:36
Re: If player kills player [ REP + ] - by _GHT_MarK445 - 11.03.2015, 22:43
Re: If player kills player [ REP + ] - by CalvinC - 12.03.2015, 06:20
Re: If player kills player [ REP + ] - by _GHT_MarK445 - 12.03.2015, 07:47

Forum Jump:


Users browsing this thread: 1 Guest(s)