SA-MP Forums Archive
[HELP]I need a thing for yagu race|Nobody help me????? - 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: [HELP]I need a thing for yagu race|Nobody help me????? (/showthread.php?tid=121363)



[HELP]I need a thing for yagu race|Nobody help me????? - anonimu45 - 16.01.2010

Hy i want when i type /join the player "stuck" for 1-2 seconds after the command teleport me on first checkpoint

P.S. Sorry for my bad English i am ROMANIAN


THANKS



Re: [HELP]I need a thing for yagu race - MadeMan - 16.01.2010

pawn Код:
forward UnfreezePlayer(playerid);

public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 1);
}
Under your /join command:

pawn Код:
TogglePlayerControllable(playerid, 0);
SetTimerEx("UnfreezePlayer", 2000, 0, "i", playerid);



Re: [HELP]I need a thing for yagu race - anonimu45 - 16.01.2010

Quote:
Originally Posted by MadeMan
pawn Код:
forward UnfreezePlayer(playerid);

public UnfreezePlayer(playerid)
{
    TogglePlayerControllable(playerid, 1);
}
Under your /join command:

pawn Код:
TogglePlayerControllable(playerid, 0);
SetTimerEx("UnfreezePlayer", 2000, 0, "i", playerid);
Nope not working