Help me with Revenge. [REP ++]
#4

pawn Код:
#define CASH_KILL 150

new lastkiller[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
    new cashToGive;
    if( (killerid != playerid) && (playerid != INVALID_PLAYER_ID))
    {
       cashToGive = ((lastkiller[killerid] == playerid) ? (CASH_KILL * 2) : CASH_KILL));
       GivePlayerMoney(killerid, cashToGive);
       lastkiller[playerid] = killerid;
    }
    return 1;
}
Reply


Messages In This Thread
Help me with Revenge. [REP ++] - by Configuration - 10.04.2013, 13:22
Re: Help me with Revenge. [REP ++] - by Faisal_khan - 10.04.2013, 13:26
Re: Help me with Revenge. [REP ++] - by Configuration - 10.04.2013, 13:31
Re: Help me with Revenge. [REP ++] - by [XST]O_x - 10.04.2013, 13:38
Re: Help me with Revenge. [REP ++] - by Configuration - 10.04.2013, 13:41
Re: Help me with Revenge. [REP ++] - by Om3n - 10.04.2013, 13:42
Re: Help me with Revenge. [REP ++] - by Configuration - 10.04.2013, 13:46

Forum Jump:


Users browsing this thread: 1 Guest(s)