09.08.2011, 16:05
pawn Код:
if(playerVariables[playerid][pEXP] >= (playerVariables[playerid][pLevel] * 8 ))
{
playerVariables[playerid][pLevel] += 1;
playerVariables[playerid][pEXP] = 0;
format(string, sizeof(string), "Congratulations! You have gained a level! You have unlocked new features.");
SendClientMessage(playerid, COLOR_YELLOW, string);
format(string, sizeof(string), "You are now level %d. Your EXP has been resetted to 0.", playerVariables[playerid][pLevel]);
SendClientMessage(playerid, COLOR_YELLOW, string);
SetPlayerScore(playerid, playerVariables[playerid][pLevel]);
}