[Ajuda] Sistema EXP
#7

Bom, pelo oque eu entendi vocк precisa usar matemбtica simples, teste:

Код HTML:
stock Experience(playerid, value)
{
	Point[playerid][pEXP] += value;
	new exp = GetValueXP(playerid);

	if(Point[playerid][pEXP] >= exp)
	{
            SetPlayerScore(playerid, ++Player[playerid][Score]);

	    new tmp = (Point[playerid][pEXP] - exp);
            Point[playerid][pEXP] = tmp;  
            SetProgressBarMaxValue(BARXP[playerid], GetValueXP(playerid));
            SetProgressBarValue(BARXP[playerid], tmp); 

            GameTextForPlayer(playerid, "~y~VOCE UPOU DE LEVEL!!!!", 3000, 3);
            Salvar_Conta(playerid);  
	}
	else SetProgressBarValue(BARXP[playerid], Point[playerid][pEXP]);
	return 1;
}
Reply


Messages In This Thread
Sistema EXP - by BrGabrielBr - 19.03.2018, 15:42
Re: Sistema EXP - by FerrariL - 19.03.2018, 15:57
Re: Sistema EXP - by BrGabrielBr - 19.03.2018, 16:24
Re: Sistema EXP - by Don_Speed - 20.03.2018, 14:45
Re: Sistema EXP - by BrGabrielBr - 20.03.2018, 18:12
Re: Sistema EXP - by Don_Speed - 20.03.2018, 19:09
Re: Sistema EXP - by Injury - 20.03.2018, 19:42
Re: Sistema EXP - by BrGabrielBr - 20.03.2018, 20:09

Forum Jump:


Users browsing this thread: 3 Guest(s)