Need some help.
#5

Add on top:
pawn Код:
new UsedKillCmd[MAX_PLAYERS];
At command:
pawn Код:
CMD:kill(playerid, params[])
{
    UsedKillCmd[playerid] = 1;
    SetPlayerHealth(playerid, 0);
    return 1;
}
At OnPlayerDeath:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(UsedKillCmd[playerid] == 0)
    {
       SendClientMessage(killerid, COLOR_GREY, " You're now a murder! ");
       GivePlayerMoney(killerid, 500);
       SendClientMessage(playerid, COLOR_GREY, " You have been murdered! ");
       GivePlayerMoney(playerid, -500);
       return 1;
    }
    else
    {
       UsedKillCmd[playerid] = 0;
       return 0;
    }
    return 1;
}
Reply


Messages In This Thread
Need some help. - by nogh445 - 14.01.2012, 19:32
Re: Need some help. - by Scenario - 14.01.2012, 19:35
Re: Need some help. - by Snowman12 - 14.01.2012, 19:37
Re: Need some help. - by nogh445 - 14.01.2012, 19:37
Re: Need some help. - by fiki574 - 14.01.2012, 19:49
Re: Need some help. - by Mean - 14.01.2012, 19:55
Re: Need some help. - by nogh445 - 14.01.2012, 19:58
Re: Need some help. - by Scenario - 14.01.2012, 20:03

Forum Jump:


Users browsing this thread: 1 Guest(s)