leveling syteam help
#9

Is This It And Can You Guys Teach Me To Reverse it so you dont buy levels they just go to straight to my level
is this the right code or do i fix it on my payday that i get every hour?

Quote:

CMD:upgradelevel(playerid, params[]) {
/* 1 level costs Level x min_level_upgrade_cost */
if(playerVariables[playerid][pBankMoney] >= playerVariables[playerid][pLevel] + 1 * assetVariables[3][aAssetValue] && playerVariables[playerid][pBankMoney] > 0) {
if(playerVariables[playerid][pLevel] >= 10)
return SendClientMessage(playerid, COLOR_GREY, "You're at the maximum level.");

if(FetchLevelFromHours(playerVariables[playerid][pPlayingHours]) == playerVariables[playerid][pLevel])
return SendClientMessage(playerid, COLOR_GREY, "You can't upgrade your level yet.");

playerVariables[playerid][pLevel] += 1;
playerVariables[playerid][pBankMoney] -= playerVariables[playerid][pLevel] + 1 * assetVariables[3][aAssetValue];

SetPlayerScore(playerid, playerVariables[playerid][pLevel]);
}
return 1;
}

Reply


Messages In This Thread
leveling syteam help - by Matthew_Garrowo - 22.12.2012, 08:18
Re: leveling syteam help - by park4bmx - 22.12.2012, 09:15
Re: leveling syteam help - by Matthew_Garrowo - 22.12.2012, 15:57
Re: leveling syteam help - by Matthew_Garrowo - 24.12.2012, 10:03
Re: leveling syteam help - by DaRk_RaiN - 24.12.2012, 11:52
Re: leveling syteam help - by Lz - 24.12.2012, 11:54
Re: leveling syteam help - by Matthew_Garrowo - 24.12.2012, 12:00
Re: leveling syteam help - by SKAzini - 24.12.2012, 12:08
Re: leveling syteam help - by Matthew_Garrowo - 24.12.2012, 14:56
Re: leveling syteam help - by Matthew_Garrowo - 26.12.2012, 05:51

Forum Jump:


Users browsing this thread: 1 Guest(s)