Objects loading freeze. - 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: Objects loading freeze. (
/showthread.php?tid=246715)
Objects loading freeze. -
The Woody - 05.04.2011
When i enters a custom interior i fall down almost everytime. So ive made an "Objects Loading" it should freeze a player in the air when they enters. But when they enters they fall down on the ground and is freezed why cant i get it to freeze the player in the air? im using "TogglePlayerControllable" shouldn't that be enough to freeze them?.
pawn Код:
// when they enters:
SetPlayerInterior( playerid, 1);
SetPlayerPos( playerid, 27.406641, -693.139465, 2338.601611);
TogglePlayerControllable(playerid, 0);
OToggleControl = SetTimerEx("OToggle", 2000, false, "i", playerid);
GameTextForPlayer(playerid, "Objects Loading", 3000, 1);
pawn Код:
// the timer on public:
forward OToggle( playerid );
public OToggle( playerid )
{
TogglePlayerControllable(playerid, true);
KillTimer(OToggleControl);
return 1;
}