01.04.2019, 22:33
PHP Code:
forward RelogioUP(playerid);
public RelogioUP(playerid)
{
if(pSegUP[playerid] == 0 && pMinUP[playerid] == 0)
{
if(PlayerInfo[playerid][Logado] == true)
{
if(PlayerInfo[playerid][Afk] == false)
{
//dini_IntSet(file, "Tempo", dini_Int(file, "Tempo")+1);
if(PlayerInfo[playerid][Exp] == 5)
{
MessageFormat(playerid, 0x75EA00AA, "| UP | Vocк ganhou +1 de Experiкncia ( %d/5 )", PlayerInfo[playerid][Exp]);
PlayerInfo[playerid][Exp]=0;
PlayerInfo[playerid][Level]++;
MessageFormat(playerid, 0x75EA00AA, "| UP | Vocк juntou 5 de Experiкncia e ganhou +1 level ( %d ) ",PlayerInfo[playerid][Level]);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
} else {
PlayerInfo[playerid][Exp]++;
PlayerPlaySound(playerid, 1057, 0, 0, 0);
GameTextForPlayer(playerid, "~w~UP!", 3000, 6);
MessageFormat(playerid, 0x75EA00AA, "| UP | Vocк ganhou +1 de Experiкncia ( %d/5 )", PlayerInfo[playerid][Exp]);
//dini_IntSet(file, "Tempo",0);
}
}
}
}
if(pSegUP[playerid] == -1)
{
if(pMinUP[playerid] == 0)
pMinUP[playerid]=10;
pSegUP[playerid]=59;
pMinUP[playerid]--;
}
format(String, sizeof(String), "~w~+~b~UP: ~w~%02d:%02d", pMinUP[playerid],pSegUP[playerid]);
PlayerTextDrawSetString(playerid, PlayerStatus[playerid][20], String);
pSegUP[playerid]--;
return 1;
}