help with jail
#1

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
Reply
#2

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;
}
Reply
#3

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


Forum Jump:


Users browsing this thread: 1 Guest(s)