SA-MP Forums Archive
help with jail - 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 with jail (/showthread.php?tid=175180)



help with jail - StyleR - 08.09.2010

if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1409.7526,-1480.6539,14.2280);
SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");
return 1;
}

how can i make to freeze player for 5 seconds? after unfreeze automat....help tnx plz


Re: help with jail - Matej_ - 08.09.2010

Quote:

how can i make to freeze player for 5 seconds?

pawn Код:
if(PlayerInfo[playerid][pJailed] == 1)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid,1409.7526,-1480.6539,14.2280);
SetTimerEx("Jail",5000,false,"d",playerid)
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_LIGHTRED, "Incomplete Jail Sentence, back to jail.");
return 1;
}



Re: help with jail - Matej_ - 08.09.2010

Quote:
Originally Posted by Zox
Посмотреть сообщение
try using a timer
Read my post ^ !