Is this possible
#1

Is it possible to freeze someone for amount of time without timer?
As its kinda hard for me to make the tazer unfreeze after 10 seconds,
As on the timer i dont know how to make the script find the id used when said /taze
Reply
#2

What should be so hard?
You set a timer (ex) for 10000 milliseconds, for playerid (i/d)
then you unfreeze the player..
Reply
#3

Quote:
Originally Posted by MenaceX^
What should be so hard?
You set a timer (ex) for 10000 milliseconds, for playerid (i/d)
then you unfreeze the player..
Thats exactly what im doing but it dosent know what id im typing,
It sends everyone a message saying that they've been uncuffed
Reply
#4

The variable must be passed using SetTimerEx(), like this:
Код:
// cuff command
SetTimerEx("unCuff", 10000, false, "i", giveplayerid);
Assuming that the ID you specify as a cuffer is "giveplayerid", just replace it with your own instance.
Код:
forward unCuff(playerid);
public unCuff(playerid)
{
  // uncuff it here
}
As simple as that.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)