28.02.2009, 19:03
Autolevel system please godfather mod add system autolevel /buylevel delete or autolevel system pLease
Note: İ english bad sorry
Note: İ english bad sorry
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); //GivePlayerMoney(playerid, (-costlevel)); PlayerInfo[playerid][pLevel]++; if(PlayerInfo[playerid][pDonateRank] > 0) { PlayerInfo[playerid][pExp] -= expamount; new total = PlayerInfo[playerid][pExp]; if(total > 0) { PlayerInfo[playerid][pExp] = total; } else { PlayerInfo[playerid][pExp] = 0; } } else { PlayerInfo[playerid][pExp] = 0; }
new nxtlevel = PlayerInfo[playerid][pLevel]+1; new costlevel = nxtlevel*levelcost;//10k for testing purposes new expamount = nxtlevel*levelexp;