30.11.2017, 15:07
Код:
CALLBACK::Telaloading(playerid) { new str[20]; format(str, 100, "Baixando %d%",PorcentagemTelaLoading[playerid]); PlayerTextDrawSetString(playerid, TelaLogin[playerid][0], str); PlayerTextDrawShow(playerid, TelaLogin[playerid][0]); if(PorcentagemTelaLoading[playerid] == 100) { for(new i; i < sizeof(loadTela); i++) { TextDrawHideForPlayer(playerid, loadTela[i]); } PlayerTextDrawHide(playerid, TelaLogin[playerid][0]); KillTimer(TimerTelaLoading[playerid]); KillTimer(PorcentagemTelaLoading[playerid]); PorcentagemTelaLoading[playerid] = 0; showTelaLogin(playerid); } return PorcentagemTelaLoading[playerid]++; }