freeze player - 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: freeze player (
/showthread.php?tid=147957)
freeze player -
shoru93 - 15.05.2010
if (strcmp("/drift", cmdtext, true, 10) == 0){
if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount()) return SendClientMessage(playerid,0xFF0000FF,"Wait until race starts!");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+1000 0);
So I want to freeze player for 10 seconds...
Re: freeze player -
ViruZZzZ_ChiLLL - 15.05.2010
Set a timer and toggleplayercontrollable, I think?
Re: freeze player -
Naxix - 15.05.2010
Try this:
Код:
if (strcmp("/drift", cmdtext, true, 10) == 0){
if(GetPVarInt(playerid,"CMDABUSE")>GetTickCount())return SendClientMessage(playerid,0xFF0000FF,"Wait until race starts!");
SetPVarInt(playerid,"CMDABUSE",GetTickCount()+10000);
TogglePlayerControllable(playerid,0);
SetTimerEx("Freeze",10000,0,"playerid",playerid);
Код:
forward Freeze(playerid);
public Freeze(playerid)
{
TogglePlayerControllable(playerid,1);
}