Wanted level = jail time - 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)
+--- Thread: Wanted level = jail time (
/showthread.php?tid=369379)
Wanted level = jail time -
CROSS_Hunter - 16.08.2012
I mean when some one has like 10 wanted levels he goes jail for 100 seconds and if 20 = 200 30 = 300 and so on but doing [pawn]if(getplayerwantedlevel == 1) blah blah and so on will be so long to make like from 1 to 1000 for example so any easy methods or any similar methods?
Re: Wanted level = jail time -
leonardo1434 - 16.08.2012
The max wanted level is 6.
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Re: Wanted level = jail time -
CROSS_Hunter - 16.08.2012
Quote:
Originally Posted by leonardo1434
|
dude.. just read what i exactly wrote and the max isnt 6 i have over 1000 max wanted lvls in the server
Re: Wanted level = jail time -
leonardo1434 - 16.08.2012
i don't really have tested if it goes above 6. anyhow, just make a loop through the level.
Re: Wanted level = jail time -
CROSS_Hunter - 16.08.2012
Quote:
Originally Posted by leonardo1434
i don't really have tested if it goes above 6. anyhow, just make a loop through the level.
|
-___- i said i need for 10 wanted lvls when a LEO arrests him and he has 10 wanted levels he goes to jail for 100 seconds if he has 20 wanted levels he goes to jail for 200 seconds and so on got it? or should i explain more?
Re: Wanted level = jail time -
antonio112 - 16.08.2012
You can always create a new player variable, like so:
pawn Код:
//top of your script
new WantedLevel[MAX_PLAYERS];
//and in the script, where you add Wanted Level, you add like:
WantedLevel[playerid] += 20; // This will add to a players wanted level 20
// And to check what a players wanted level is, do like:
if(WantedLevel[playerid] == 20)
// if his wanted level is 20
else if(WantedLevel[playerid] == 40)
// if his wanted level is 40 and so on
Re: Wanted level = jail time -
CROSS_Hunter - 16.08.2012
Quote:
Originally Posted by antonio112
You can always create a new player variable, like so:
pawn Код:
//top of your script new WantedLevel[MAX_PLAYERS];
//and in the script, where you add Wanted Level, you add like:
WantedLevel[playerid] += 20; // This will add to a players wanted level 20
// And to check what a players wanted level is, do like: if(WantedLevel[playerid] == 20) // if his wanted level is 20 else if(WantedLevel[playerid] == 40) // if his wanted level is 40 and so on
|
i need to use it with arrest command and + i want ti for every single level starting from 6 so 6 wanted leveels = 60 seconds in jail 7 wanted lvls = 70 seconds in jail and so on why dont u guys get it?
Re: Wanted level = jail time -
Vince - 16.08.2012
Multiplication? Basic mathematics? Hello? Really, I can't help but wonder about the stupidity of some.
Re: Wanted level = jail time -
CROSS_Hunter - 16.08.2012
Quote:
Originally Posted by Vince
Multiplication? Basic mathematics? Hello? Really, I can't help but wonder about the stupidity of some.
|
? post a good reply after that
Re: Wanted level = jail time -
Vince - 16.08.2012
I guess you're one of those people who needs to be spoon fed. If you don't know how to multiply then I wish you luck in your further life.
pawn Код:
new time = GetPlayerWantedLevel(playerid) * 1000 * 10;
SetTimerEx("blahblahblah", time, false, "d", playerid);
You happy now?