20.03.2018, 14:45
PHP код:
public Experience(playerid, value)
{
Point[playerid][pEXP] += value;
if(Point[playerid][pEXP] >= GetValueXP(playerid))
{
Point[playerid][pEXP] = 0;
Player[playerid][Score] += 1;
SetProgressBarValue(BARXP[playerid], 0);
SetProgressBarMaxValue(BARXP[playerid], GetValueXP(playerid));
SetPlayerScore(playerid, Player[playerid][Score]);
GameTextForPlayer(playerid, "~y~VOCE UPOU DE LEVEL!!!!", 3000, 3);
Salvar_Conta(playerid);
return 1;
}
UpdateBar(playerid);
return 1;
}
PS: Nгo intendo muito sobre .