11.01.2013, 16:55
pawn Код:
// After
PlayerInfo[i][pExp]++;
PlayerPlayMusic(i);
PlayerInfo[i][pAccount] = account+interest;
// Add this
new nxtlevel = PlayerInfo[playerid][pLevel]+1;
new expamount = nxtlevel*levelexp;
if (PlayerInfo[playerid][pExp] < expamount)
{
format(string, sizeof(string), "~g~LEVEL UP~n~~w~You Are Now Level %d", nxtlevel);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(playerid);
PlayerInfo[playerid][pLevel]++;
PlayerInfo[playerid][pExp] = 0;
}
// Rest of the code..
SendClientMessage(i, COLOR_WHITE, "|___ BANK STATMENT ___|");