Wanted Level - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Wanted Level (
/showthread.php?tid=158853)
Wanted Level -
Nasri - 11.07.2010
Hello Guys Can Some1 Guide me where I can find a script who show the wanted level?
I'm kinda new to Pawno and SAMP Scripting Style so.... I need to ask for help.
All what I need from the script is to add the Stars when you have a Wanter Level.
Thanks in advice.
Re: Wanted Level -
Grim_ - 11.07.2010
SetPlayerWantedLevel(playerid, level);
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Re: Wanted Level -
ViruZZzZ_ChiLLL - 11.07.2010
Uhhh it will add automatically when you put
pawn Код:
SetPlayerWantedLevel(playerid, Level);
For anymore info look at here :
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Re: Wanted Level -
Grim_ - 11.07.2010
Erm... I don't see any difference in our posts
Re: Wanted Level -
Nasri - 11.07.2010
Okay thanks for help
Re: Wanted Level -
Nasri - 11.07.2010
Sorry for double post, but from what I have read on wiki this script ADD the Wanted.
But what I ask is a kind of script who show the wanted level under the money.
I'm sorry if I'm wrong so please tell me.
Re: Wanted Level -
Grim_ - 11.07.2010
That's what it does, to give the player a wanted level you use that function, and it'll automatically show it.
Test:
pawn Код:
public OnPlayerSpawn(playerid)
{
SetPlayerWantedLevel(playerid, 3);
return 1;
}
Re: Wanted Level -
Nasri - 11.07.2010
Okay, I will test it now.
And I will let a reply.
I have asked this because if I try to enter a Police Car I get WantedLevel 2 But the Stars wont show.
Re: Wanted Level -
Grim_ - 11.07.2010
In that case, could you please show the code where you are giving the player two wanted level for entering a police vehicle?
Re: Wanted Level -
Nasri - 11.07.2010
Quote:
Originally Posted by Grim_
In that case, could you please show the code where you are giving the player two wanted level for entering a police vehicle?
|
Thanks for the help but now I have found what was wrong =]
I have made a noob error when I was Call the WantedLevel =]