11.08.2009, 20:06
ok well it works thanks. I had something like this controlling the sound to stop:
please tell me wtf this is?
pawn Код:
public DynUpdateStart(playerid) //Shurty40
{
TogglePlayerControllable(playerid, false);
new string[255];
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); }
else { SetTimerEx("DynUpdateEnd", 2700, 0,"e",playerid); }
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
public DynUpdateEnd(playerid) //Shurty40
{
TogglePlayerControllable(playerid, true);
new string[255];
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;
}