SA-MP Forums Archive
hospital - 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)
+--- Thread: hospital (/showthread.php?tid=327578)



hospital - 3RoR - 21.03.2012

How to create when a player is TogglePlayerControllable(playerid, 0); 20 sec
Quote:

SetPlayerPos(playerid, 275.2320,1859.6525,9.8133);
SetPlayerPos(playerid, 275.2320,1859.6525,9.8133);
TogglePlayerControllable(playerid, 0);
ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~w~Vie legate vo bolnica...", 15000, 3);
SendClientMessage(playerid, COLOR_YELLOW, " Prefrleni ste vo bolnica. ");

SetTimerEx("TempoHospital", 250000, false, "i", playerid);
gHospitalInfo[playerid][FoiHospital] += 1;

when 20sec... to set the player TogglePlayerControllable(playerid, 0); ?
when 4 minutes reached the player is free only


Re: hospital - DarkScripter - 21.03.2012

pawn Code:
TogglePlayerControllable(playerid, 0); // Lock player
TogglePlayerControllable(playerid, 1); // Unlock Player



Re: hospital - antonio112 - 21.03.2012

What? I really can't understand what you need. Explain better please.


Re: hospital - 3RoR - 21.03.2012

it's okey y complete...
y make a new public..