Wanted Level 6
#3

Quote:
Originally Posted by BenzoAMG
Посмотреть сообщение
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID && killerid != playerid)
    {
        if(GetPlayerWantedLevel(playerid) >= 6)
        {
            SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
            new fstr[150], dname[MAX_PLAYER_NAME], kname[MAX_PLAYER_NAME];
            GetPlayerName(playerid, dname, MAX_PLAYER_NAME);
            GetPlayerName(killerid, kname, MAX_PLAYER_NAME);
            format(fstr, sizeof(fstr), "Player %s(%d) has killed %s(%d) with a wanted level of 6, and has claimed a bonus score!", kname, killerid, dname, playerid);
            //SetPlayerWantedLevel(playerid, 0);
        }
    }
    return 1;
}
Thanks my friend how about senclientmessagetoall?

I also want to notify to all players that "Playername has a wanted level of 6. Kill him to get score bonus"
Reply


Messages In This Thread
Wanted Level 6 - by gotwarzone - 22.10.2013, 15:36
Re: Wanted Level 6 - by Threshold - 22.10.2013, 15:41
Re: Wanted Level 6 - by gotwarzone - 22.10.2013, 15:54
Re: Wanted Level 6 - by Threshold - 22.10.2013, 16:10
Re: Wanted Level 6 - by gotwarzone - 22.10.2013, 16:18
Re: Wanted Level 6 - by Threshold - 22.10.2013, 16:23
Re: Wanted Level 6 - by gotwarzone - 22.10.2013, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)