20.03.2010, 20:25
Hello , i want to add more drugs on payday . There is curently set on 1 gram but i want to add 25 grams on payday ! Can you tell me what to modifi ? This is the pawno code :
Код:
format(string, sizeof(string), "_______< Bank of %s >________", GAMEMODE_MAP); SendClientMessage(i, COLOR_BLUE, string); format(string, sizeof(string), " Level: %d, Exp: %d", PlayerInfo[i][pLevel], PlayerInfo[i][pExp]); SendClientMessage(i, COLOR_GREY, string); format(string, sizeof(string), " Balance: $%d", PlayerInfo[i][pBank]); SendClientMessage(i, COLOR_GREY, string); format(string, sizeof(string), " Drugs: %d gram.", PlayerInfo[i][pDrugs]); SendClientMessage(i, COLOR_GREY, string); PlayerInfo[i][pExp] ++; if(PlayerInfo[i][pVip] == 1){PlayerInfo[i][pExp] ++;} // 1 Extra exp for vips. PlayerInfo[i][pDrugs] ++; if(PlayerInfo[i][pVip] == 1){PlayerInfo[i][pDrugs] ++;} // 1 Extra gram drugs for vips. PlayerInfo[i][pBank] = PlayerInfo[i][pBank]+PlayerInfo[i][pLevel]*PAYDAY_MONEY; if(PlayerInfo[i][pExp] >= PlayerInfo[i][pLevel]) { PlayerInfo[i][pExp] = 0; PlayerInfo[i][pLevel] ++; } SendClientMessage(i, COLOR_WHITE, "|--------------------------------------------------|"); format(string, sizeof(string), " New Level: %d, New Exp: %d", PlayerInfo[i][pLevel], PlayerInfo[i][pExp]); SendClientMessage(i, COLOR_GREY, string); format(string, sizeof(string), " New Balance: $%d", PlayerInfo[i][pBank]); SendClientMessage(i, COLOR_GREY, string); format(string, sizeof(string), " New Drugs: %d gram.", PlayerInfo[i][pDrugs]); SendClientMessage(i, COLOR_GREY, string); SendClientMessage(i, COLOR_BLUE, "________________________________"); format(string, sizeof(string), "~b~PayDay~n~~w~Paycheck ~n~~g~$%d", PlayerInfo[i][pLevel]*PAYDAY_MONEY); GameTextForPlayer(i, string, 5000, 1);