SetFreezePos(playerid, Float:x, Float:y, Float:z) { if(PlayerInfo[playerid][pFreezeTimer] >= 0) { KillTimer(PlayerInfo[playerid][pFreezeTimer]); } PlayerInfo[playerid][pFreezeTimer] = SetTimerEx("UnfreezePlayer", 3000, false, "ifff", playerid, x, y, z); SetPlayerPos(playerid, x, y, z); TogglePlayerControllable(playerid, false); TextDrawShowForPlayer(playerid, Loading[0]); TextDrawShowForPlayer(playerid, Loading[1]); TextDrawShowForPlayer(playerid, Loading[2]); TextDrawShowForPlayer(playerid, Loading[3]); TextDrawShowForPlayer(playerid, Loading[4]); TextDrawShowForPlayer(playerid, Loading[5]); SetTimer("HideLoadingTextdraw", 3000, false); }
forward HideLoadingTextdraw(playerid); public HideLoadingTextdraw(playerid) { TextDrawHideForPlayer(playerid, Loading[0]); TextDrawHideForPlayer(playerid, Loading[1]); TextDrawHideForPlayer(playerid, Loading[2]); TextDrawHideForPlayer(playerid, Loading[3]); TextDrawHideForPlayer(playerid, Loading[4]); TextDrawHideForPlayer(playerid, Loading[5]); TextDrawHideForPlayer(playerid, Loading[6]); } }
SetTimerEx("HideLoadingTextdraw", 3000, false, "i", playerid);
SetFreezePos(playerid, Float:x, Float:y, Float:z) { if(PlayerInfo[playerid][pFreezeTimer] >= 0) { KillTimer(PlayerInfo[playerid][pFreezeTimer]); } PlayerInfo[playerid][pFreezeTimer] = SetTimerEx("UnfreezePlayer", 3000, false, "ifff", playerid, x, y, z); SetPlayerPos(playerid, x, y, z); TogglePlayerControllable(playerid, false); TextDrawShowForPlayer(playerid, Loading[0]); TextDrawShowForPlayer(playerid, Loading[1]); TextDrawShowForPlayer(playerid, Loading[2]); TextDrawShowForPlayer(playerid, Loading[3]); TextDrawShowForPlayer(playerid, Loading[4]); TextDrawShowForPlayer(playerid, Loading[5]); // TextDrawShowForPlayer(playerid, Loading[6]); SetTimerEx("SafeLoadObjectsClear", 3000, false, "i", playerid); }
forward SafeLoadObjectsClear(playerid); public SafeLoadObjectsClear(playerid) { TextDrawHideForPlayer(playerid, Loading[0]); TextDrawHideForPlayer(playerid, Loading[1]); TextDrawHideForPlayer(playerid, Loading[2]); TextDrawHideForPlayer(playerid, Loading[3]); TextDrawHideForPlayer(playerid, Loading[4]); TextDrawHideForPlayer(playerid, Loading[5]); }
What's it even doing? and what's it supposed to do?
Are you sure the timer is even being 'started'? Try using Printf or SendClientMessages to show it 'working' in game or in the log. |