SA-MP Forums Archive
Im making a simple /arrest - 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: Im making a simple /arrest (/showthread.php?tid=121943)



Im making a simple /arrest - JoeDaDude - 19.01.2010

As the title says, Im making a simple /arrest command,
And i want it timed, I know how to do that, SetTimer ect,
But if i do...

pawn Code:
public ArrestTimer(playerid)
{
SpawnPlayer(playerid);
}
It spawns everyone when the times ran out, I know that,
I tried using, if(Arrest[playerid] == 1) or whatever it was,
But it releases everyone whos jailed, Even if there time isent up,
So what should i do?


Re: Im making a simple /arrest - Miguel - 19.01.2010

Are you using SetTimerEx or SetTimer? They are different and you'll need to use the first one.


Re: Im making a simple /arrest - MenaceX^ - 19.01.2010

Quote:
Originally Posted by SAWC™
Are you using SetTimerEx or SetTimer? They are different and you'll need to use the first one.
He doesn't use anything yet..
And of course he will use SetTimerEx if it's for a specific value.


Re: Im making a simple /arrest - JoeDaDude - 19.01.2010

How to use SetTimerEx, I never known how


Re: Im making a simple /arrest - JoeDaDude - 19.01.2010

Bump


Re: Im making a simple /arrest - kman - 19.01.2010

forward Test();

SetTimer("Test","time you want",1);

I think




Re: Im making a simple /arrest - SlashPT - 19.01.2010

nope its SetTimerEx

and its CLICK ==> SetTimerEx


Re: Im making a simple /arrest - kman - 19.01.2010

Quote:
Originally Posted by DarK_TeaM PT
nope its SetTimerEx

and its CLICK ==> SetTimerEx
o sorry SetTimerEx

well just search on sa-mp wiki then



Re: Im making a simple /arrest - shady91 - 19.01.2010

pawn Code:
SetTimerEx("ArrestTimer", 7000, 0, "i", playerid);
you would make it like that not SetTimer as thats for everyone.