SA-MP Forums Archive
Score = 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: Score = wanted level (/showthread.php?tid=262518)



Score = wanted level - cruising - 18.06.2011

Hello!

I got a idea about score and wanted levels.

It works like this, when you reach a amount of score, you will get a wanted level.
Like this.
score: 100 *
score: 250 **
score: 500 ***
score: 750 ****
score: 1000 *****

I dont know if it can be done or how to be done, and make it being saved in userfile, or make a check when a player spawns. The star must be shown even if he have a score between 100-249 until he get 250 in score and a second star.
Are someone willing to help me out with this?


Re: Score = wanted level - Madsen - 18.06.2011

it is possible i will be able to make it but i am not sure how. somthing like
if(getplayerscore(playerid) > 100 && getplayerscore(playerid) < 250)
{
Setplayerwantedlevel(playerid, x);
}
something like that its not correct and will prob give some errors but i tihnk you should be able to do the rest yourself


Re: Score = wanted level - cruising - 18.06.2011

Quote:
Originally Posted by Madsen
Посмотреть сообщение
it is possible i will be able to make it but i am not sure how. somthing like
if(getplayerscore(playerid) > 100 && getplayerscore(playerid) < 250)
{
Setplayerwantedlevel(playerid, x);
}
something like that its not correct and will prob give some errors but i tihnk you should be able to do the rest yourself
Hmm, i can try from here, but i guess i will fail when im not that good on scripting :P

EDIT: it works! Thanks allot man one more question, is it possible to show ministars over the healtbar visible for other players? i mean over/under nametags?