How can i..
#1

Once a player enters the checkpoint, how can i make him freeze for around 5 seconds

i know i need a timer but don't know how to put it in.

Код:
TogglePlayerControllable(playerid, 0);
(timerstuff)        
TogglePlayerControllable(playerid, 1);
not sure if thats correct but thats as fair i got using the wiki.

any help would be appreciated
Reply
#2

pawn Код:
SetTimerEx("freezetimer", 5000, 0, "%d", playerid); // Set the timer where needed

public freezetimer(playerid) // In the bottom of the script. This will simply unfreeze the player after 5 seconds.
{
    TogglePlayerControllable(playerid, 1);
}
Reply
#3

Make sure you

pawn Код:
forward freezetimer(playerid); // Make sure you has that
public freezetimer(playerid) // In the bottom of the script. This will simply unfreeze the player after 5 seconds.
{
    TogglePlayerControllable(playerid, 1);
}
Reply
#4

Oh yes, my bad.
Reply
#5

sweet that works, thanks alot man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)