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(playerid3.02260.1809,-107.9091,26.4738)) //hospital
    
{
        
SetPlayerPos(playerid1144.6440,-2510.8223,113.8221);
        
SetPlayerInterior(playerid0);
        
SetPlayerVirtualWorld(playerid137);
        
LoadObjects(playerid5);
    } 
and this
PHP код:
forward LoadObjects(playeridtime);
public 
LoadObjects(playeridtime)
{
    
TogglePlayerControllable(playerid0);
    
GameTextForPlayer(playerid"~w~Loading objects..."time*20004);
    
SetTimerEx("unFreeze"time*1000false"i"playerid);
    return 
1;
}
forward unFreeze(playerid);
public 
unFreeze(playerid)
{
    
GameTextForPlayer(playerid"~g~Objects loaded!"30004);
    
TogglePlayerControllable(playerid1);
    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!