27.12.2013, 13:24
Excuse me, if i buy bait very much. for exam /buybait 99999999 i will get 9999999 money. i dont know why. i hope anyone can help me.
This is the code's
I'm sorry because that's using Indonesian Language
This is the code's
Код:
CMD:buybait(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 3.0,359.3279,-2031.8842,7.8359)) { SendClientMessageEx(playerid, COLOR_GREY, " Kamu tidak di toko umpan."); return 1; } new bait, string[128]; if(sscanf(params, "d", bait)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /buybait [jumlah]"); if (GetPlayerCash(playerid) >= bait*50)//ada chance dapet bukan ikan, ada chance dapet ikan yg gabisa dijual { PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0); PlayerInfo[playerid][pBait] += bait; GivePlayerCash(playerid, -(bait*50)); SaveAccountsUpdate(); format(string, sizeof(string), "Kamu telah membeli %d umpan seharga $%d", bait, bait*50); SendClientMessageEx(playerid, COLOR_GREEN, string); } else { SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!"); } return 1; }