SA-MP Forums Archive
Unfreeze problem! - 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: Unfreeze problem! (/showthread.php?tid=436673)



Unfreeze problem! - lQs - 12.05.2013

SOLVED!


Re: Unfreeze problem! - Blaeks - 12.05.2013

try like this
PHP код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 2260.1809,-107.9091,26.4738)) //hospital
    
{
        
SetPlayerPos(playerid, 1144.6440,-2510.8223,113.8221);
        
SetPlayerInterior(playerid, 0);
        
SetPlayerVirtualWorld(playerid, 137);
        
LoadObjects(playerid, 5);
    } 
and this
PHP код:
forward LoadObjects(playerid, time);
public 
LoadObjects(playerid, time)
{
    
TogglePlayerControllable(playerid, 0);
    
GameTextForPlayer(playerid, "~w~Loading objects...", time*2000, 4);
    
SetTimerEx("unFreeze", time*1000, false, "i", playerid);
    return 
1;
}
forward unFreeze(playerid);
public 
unFreeze(playerid)
{
    
GameTextForPlayer(playerid, "~g~Objects loaded!", 3000, 4);
    
TogglePlayerControllable(playerid, 1);
    return 
1;
} 



Re: Unfreeze problem! - DaRk_RaiN - 12.05.2013

It should be a TimerEx as mentioned above.


Re: Unfreeze problem! - lQs - 12.05.2013

Working, thanks!