Help me with freezing player while mapping loading
#7

On the top of script :
PHP код:
forward PlayerControllableAfterSpawn(playerid); 
Everywhere you want :
PHP код:
stock SetPlayerPosEx(playeridFloat:XFloat:YFloat:Zinteriorid 0)
{
    
SetPlayerPos(playeridXYZ+0.5), SetPlayerInterior(playeridinteriorid);
    
TogglePlayerControllable(playeridfalse);
    
GameTextForPlayer(playerid "Please Wait..." 30005);
    
SetPlayerVirtualWorld(playerid 54);
    
SetTimerEx("PlayerControllableAfterSpawn"5000"i"playerid);
    return 
1;
}
public 
PlayerControllableAfterSpawn(playerid)
{
    
TogglePlayerControllable(playerid 1);
    
SetPlayerVirtualWorld(playerid 0);
    return 
1;

and then use SetPlayerPosEx for spawning
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)