Wanted Level help? +REP
#1

This is what I mean: Lets pretend. I'm civilian and you are cop.

1. I kill you or anyone (my name turns orange on everyone's screen because i'm now wanted and i have wanted stars)
2. you arrest me and i go to jail
3. I get out of jail after my jail time is up.
4. I kill you again but I don't turn orange. I stay white (not wanted). But on my screen, I'm wanted (4 stars).

But cops can still /arrest me if they "guess" that I'm wanted which they won't. so how do I fix this?
Reply
#2

post your code!
Reply
#3

Try SetPlayerWantedLevel.
Then use assign a variable "wanted" or whatever,then if you use foreach, check if a player's variable "wanted" == 1, or whatever, then get it to show their name.
Reply
#4

Here is my code:

Код:
	{
    KillerLevel[killerid] += 4;
    SetPlayerWantedLevel(killerid, KillerLevel[killerid]);
    KillerTime[killerid] = SetTimerEx("KillerTimer", 300000, true, "u", killerid);
    SendClientMessage(COLOR_WHITE, killerid, "You are now wanted for murder, you will lose a star every 5 minutes.");
	}
Reply
#5

Anyone please?
Reply
#6

We need the part before this too. Post the whole command!
Reply
#7

You can do like this SetPlayerWantedLevel(playerid,GetPlayerWantedLevel (playerid) +4); instead of LevelKilling[platyerid] +=4

and if you want make him Orange use this


forward WantedOrange(playerid)
public WantedOrange(playerid)
{

if(GetPlayerWantedLevel(playerid) >= 4)
SetPlayerColor(playerid,COLOR_ORANGE)
return 1;
}
Reply
#8

Wait I don't get it. Can anyone clarify for me?
Reply
#9

This is good. Thanks to everyone!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)