Wanted level = jail time
#1

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?
Reply
#2

The max wanted level is 6.

https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Reply
#3

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
Reply
#4

i don't really have tested if it goes above 6. anyhow, just make a loop through the level.
Reply
#5

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?
Reply
#6

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
Reply
#7

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?
Reply
#8

Multiplication? Basic mathematics? Hello? Really, I can't help but wonder about the stupidity of some.
Reply
#9

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
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)