Lose Wanted over 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lose Wanted over time? (
/showthread.php?tid=158528)
Lose Wanted over time? -
Jackster - 10.07.2010
I know this gets asked every day but i would realy like a working one.
It would need to Lose 1 star every 2.5 mins. Every star you lose gives you 2 points each.
{extra} If you reach 6 wanted you get 6 points on the dot?
Thanks
Re: Lose Wanted over time? -
Hiddos - 10.07.2010
pawn Код:
forward DecreaseWanted(playerid);
public DecreaseWanted(playerid)
{
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)-1);
return 1;
Work with PVar's and shit to kill the timers when they're useless.
Re: Lose Wanted over time? -
Jackster - 10.07.2010
Quote:
Originally Posted by Hiddos
pawn Код:
forward DecreaseWanted(playerid); public DecreaseWanted(playerid) { SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)-1); return 1;
Work with PVar's and shit to kill the timers when they're useless.
|
What will that do?
Re: Lose Wanted over time? -
iJumbo - 10.07.2010
when u set to wanted start a timer and activate this public and this decrease by -1 the wanted level
Re: Lose Wanted over time? -
Jackster - 10.07.2010
er? Can some one make it so i just put it im my GameMode and it works? Im no good with timers. PLZ
Re: Lose Wanted over time? -
Cameltoe - 10.07.2010
Quote:
Originally Posted by Jackster
er? Can some one make it so i just put it im my GameMode and it works? Im no good with timers. PLZ
|
Hiddos really did that lol..
Re: Lose Wanted over time? -
Jackster - 10.07.2010
But will that make the player lose wanted every 1 mins?
Re: Lose Wanted over time? -
Cameltoe - 10.07.2010
if you add a timer yes
-
https://sampwiki.blast.hk/wiki/SetTimer
Re: Lose Wanted over time? -
TouR - 10.07.2010
Код:
SetTimer("DecreaseWanted", 120000, 1); //under ongamemodeinit
Re: Lose Wanted over time? -
Jackster - 10.07.2010
Its didn't work tour15.
It incresed it.
Should it be -1 ?