How to kill this Timer, if i use /unjail ? - 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: How to kill this Timer, if i use /unjail ? (
/showthread.php?tid=94519)
How to kill this Timer, if i use /unjail ? -
Erkan - 30.08.2009
Fixed THX
Re: How to kill this Timer, if i use /unjail ? -
ded - 30.08.2009
Try this :
At top of script add:
Then in your jail command, before the SetTimerEx add:
Then On Unjail add this:
Код:
KillTimer(JailTimer);
Re: How to kill this Timer, if i use /unjail ? -
Erkan - 30.08.2009
Thx works
Re: How to kill this Timer, if i use /unjail ? -
ded - 30.08.2009
Re: How to kill this Timer, if i use /unjail ? -
Jefff - 30.08.2009
Works only for one player should be
Код:
new Timer[MAX_PLAYERS];
Код:
Timer[giveplayerid] =
Код:
KillTimer(Timer[giveplayerid]);
Re: How to kill this Timer, if i use /unjail ? -
ded - 30.08.2009
Quote:
Originally Posted by Jefff
Works only for one player should be
Код:
new Timer[MAX_PLAYERS];
Код:
Timer[giveplayerid] =
Код:
KillTimer(Timer[giveplayerid]);
|
Ahhh yeah ... silly me.
Re: How to kill this Timer, if i use /unjail ? -
Erkan - 31.08.2009
unfdefined symbol giveplayerid , shall i add this
new giveplayerid[MAX_PLAYER_NAME];
new playa;
playa = strval(tmp);
GetPlayerName(playa, giveplayerid, sizeof(giveplayerid));
Re: How to kill this Timer, if i use /unjail ? -
Erkan - 31.08.2009
Sorry for bumping, but how to define giveplayerid need help .
Re: How to kill this Timer, if i use /unjail ? -
JaTochNietDan - 31.08.2009
Quote:
Originally Posted by [LSB
Erkan ]
Sorry for bumping, but how to define giveplayerid need help .
|
The variable they assume as "giveplayerid" is simply the variable you use to define the target of the "/unjail" command in your script. Simply replace it with whatever suits your "/unjail" command to make it work.
By the looks of your script, this is "potherplayer"
Re: How to kill this Timer, if i use /unjail ? -
Erkan - 31.08.2009
Thanks and if I jail and unjail my self does it still work ?