star - 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: star (
/showthread.php?tid=640655)
star -
asri - 05.09.2017
how to make wanted star go down
Re: star -
OneDay - 05.09.2017
https://sampwiki.blast.hk/wiki/SetPlayerWantedLevel
Re: star -
asri - 05.09.2017
no like the wanted star go down after 2 minute
Re: star -
Zeth - 05.09.2017
use SetTimerEx and connect it with function of a wanted star going down.
Read More here
Re: star -
asri - 05.09.2017
i use timer but how to make the timer go on i mean where to put the timer to make the time go on and how to know the number of star level to go down.
Re: star -
Fratello - 05.09.2017
I don't really understand half of this.
Is this what you want?
Код:
SetTimerEx("WantedDown", 120000, false, "i", playerid);
forward WantedDown(playerid);
public WantedDown(playerid)
{
SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)-2);
return 1;
}
You can trigger the timer from anywhere. For example when player robs a store or something similar to it.