08.04.2019, 22:15
PHP Code:
if(DOF2_GetInt(ContaPlayer(playerid), "EXP") >=5)
{
DOF2_SetInt(ContaPlayer(playerid), "Level", DOF2_GetInt(ContaPlayer(playerid), "Level")+1);
PlayerInfo[playerid][Level]++;
format(string, sizeof(string), "(INFO) Vocк juntou 5 de respeito, e ganhou +1 level. (%d) ",DOF2_GetInt(ContaPlayer(playerid), "Level"));
SendClientMessage(playerid, 0x75EA00AA, string);
PlayerPlaySound(playerid, 1057, 0, 0, 0);
DOF2_SetInt(ContaPlayer(playerid), "EXP",0);
SetPlayerScore(playerid, PlayerInfo[playerid][Level]);
}