Wanted level +1 on player kill?? (bugged)
#4

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
The only problem I saw was that you wrote "=>" instead of ">="


Here again the same code just everything in OnPlayerDeath
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID)
    { //jumping from cliff and so on
        if (GetPlayerWantedLevel(playerid) == 0)
        {
            SendClientMessage(killerid, COLOR_RED, "You killed an innocent person!, wanted level has been increased.");
            SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid) + 1);
        } else {
            SendClientMessage(killerid, COLOR_GREEN, "You killed a wanted player!, you get $10,000 reward.");
            GivePlayerMoney(killerid, 10_000);
        }
    }
    SetPlayerWantedLevel(playerid, 0);
}
And try to check for the messages, if none appeared try to debug the problem out
Yeah Nothing shows at all the first time, but the second kill registers. I will defo try debug mode soon.


thanks for the advice!
Reply


Messages In This Thread
Wanted level +1 on player kill?? (bugged) - by sheepondrugs - 31.08.2010, 01:02
Re: Wanted level +1 on player kill?? (bugged) - by AndriusZ* - 31.08.2010, 01:08
Re: Wanted level +1 on player kill?? (bugged) - by Nero_3D - 31.08.2010, 01:19
Re: Wanted level +1 on player kill?? (bugged) - by sheepondrugs - 31.08.2010, 01:27

Forum Jump:


Users browsing this thread: 1 Guest(s)