Whats wrong in my wanted system?
#1

Heey all,
I want to make my own wanted system but it dont work.
I made:
Код:
Code Deleted
If i am robbing someone ,i dont get another player color and wanted.
How can i fix this?

Thanks Admigo
Reply
#2

Sure?
pawn Код:
WantedLevel[playerid]+=4;
Try
pawn Код:
WantedLevel[playerid]++;
With the first, the WantedLevel unlikely to have another value except 0, 4 and 8.
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Sure?
pawn Код:
WantedLevel[playerid]+=4;
Try
pawn Код:
WantedLevel[playerid]++;
With the first, the WantedLevel unlikely to have another value except 0, 4 and 8.
Nevermind,forgot to define my team.
But why WantedLevel[playerid]++;?
How you can add 4 wantedlevel then?
Reply
#4

pawn Код:
new WantedLevel[MAX_PLAYERS];

//Command - Example
WantedLevel[playerid]++;
switch(WantedLevel[playerid])
{
    case 1:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 1");
    }
    case 2:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 2");
    }
    case 3:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 3");
    }
    case 4:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 4");
    }
    case 5:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 5");
    }
    case 6:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 6");
    }
    case 7:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 7");
    }
    case 8:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 8");
    }
    case 9:
    {
        SendClientMessage(playerid,-1,"Your WantedLevel now is : 9");
    }
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)