SA-MP Forums Archive
Help. - 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: Help. (/showthread.php?tid=616633)



Help. - DeeadPool - 08.09.2016

How do I create that some servers have like "Loading object" for 2 secs and after that he comes on the ground. I want it because the map I made i causing a lot of players to spawn in the ground.


Re: Help. - Stinged - 08.09.2016

pawn Code:
public OnPlayerSpawn(playerid)
{
    SendClientMessage(playerid, -1, "Loading objects...");
    TogglePlayerControllable(playerid, 0);
    SetTimerEx("Timer_SpawnUnfreeze", 2000, false, "i", playerid);
    return 1;
}

forward Timer_SpawnUnfreeze(playerid); public Timer_SpawnUnfreeze(playerid)
{
    TogglePlayerControllable(playerid, 1);
}