How to kill this Timer, if i use /unjail ?
#1

Fixed THX
Reply
#2

Try this :

At top of script add:

Код:
new JailTimer;
Then in your jail command, before the SetTimerEx add:

Код:
JailTimer =
Then On Unjail add this:

Код:
KillTimer(JailTimer);
Reply
#3

Thx works
Reply
#4

Reply
#5

Works only for one player should be
Код:
new Timer[MAX_PLAYERS];
Код:
Timer[giveplayerid] =
Код:
KillTimer(Timer[giveplayerid]);
Reply
#6

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.
Reply
#7

unfdefined symbol giveplayerid , shall i add this

new giveplayerid[MAX_PLAYER_NAME];

new playa;
playa = strval(tmp);
GetPlayerName(playa, giveplayerid, sizeof(giveplayerid));
Reply
#8

Sorry for bumping, but how to define giveplayerid need help .
Reply
#9

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"
Reply
#10

Thanks and if I jail and unjail my self does it still work ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)