20.07.2011, 13:00
This is from my gm: (I didn't make it)
and
I think thats what you want ?
Just use
DynUpdateStart(playerid);
pawn Код:
//somewhere
public DynUpdateStart(playerid) // Shurty40
{
TogglePlayerControllable(playerid, false);
new string[128];
format(string, sizeof(string), "~w~Objects~n~~r~Loading");
GameTextForPlayer(playerid, string, 3000, 6);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
if(GetPlayerPing(playerid) < 100) { SetTimerEx("DynUpdateEnd", 2000, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 100) { SetTimerEx("DynUpdateEnd", 2000, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 200) { SetTimerEx("DynUpdateEnd", 2200, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 300) { SetTimerEx("DynUpdateEnd", 2700, 0,"e",playerid); }
else if(GetPlayerPing(playerid) > 500) { SetTimerEx("DynUpdateEnd", 3000, 0,"e",playerid); }
return 1;
}
pawn Код:
public DynUpdateEnd(playerid) // Shurty40
{
TogglePlayerControllable(playerid, true);
new string[128];
format(string, sizeof(string), "~w~Objects~n~~r~Loaded!");
GameTextForPlayer(playerid, string, 3000, 6);
PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
return 1;
}
Just use
DynUpdateStart(playerid);