- 0
Comanda withdraw
-
Similar Content
-
- 2 replies
- 2.003 views
-
- 1 answer
- 449 views
-
- 2 answers
- 1.044 views
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 859 views
-
- 3 answers
- 1.380 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
ToX1c
Salut all , am vrut sa fac si eu la comanda /withdraw , cei care nu au 4 rp-uri sa nu poata sa dea , si tot nu merge
CMD:withdraw(playerid, params[]) { new string[256]; if(PlayerInfo[playerid][pExp] == 4) return SendClientMessage(playerid, COLOR_GRAD1, "4 Respect Points pentru a folosi comanda !"); if(PlayerInfo[playerid][pLocal] == 103) { if(sscanf(params, "i", withdraw)) { SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You Have %s in your account.", FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (withdraw > PlayerInfo[playerid][pAccount] || withdraw < 1) { SendClientMessage(playerid, COLOR_GRAD1, "You dont have that much."); return 1; } ConsumingMoney[playerid] = 1; PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + withdraw; PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-withdraw; format(string, sizeof(string), "You Have Withdrawn %s from your account Total: %s ", FormatMoney(withdraw),FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else if(PlayerToPoint(1.5, playerid, -1973.2712,117.3730,27.6875)) { if(sscanf(params, "i", withdraw)) { SendClientMessage(playerid, COLOR_ORANGE, "{F97804}USAGE:{B4B5B7}{FFFFFF} /withdraw [amount]"); format(string, sizeof(string), "You Have %s in your account.", FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_GRAD3, string); return 1; } if (withdraw > PlayerInfo[playerid][pAccount] || withdraw < 1) { SendClientMessage(playerid, COLOR_GRAD1, "You dont have that much !"); return 1; } ConsumingMoney[playerid] = 1; PlayerInfo[playerid][pCash] = PlayerInfo[playerid][pCash] + withdraw; PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-withdraw; format(string, sizeof(string), "You Have Withdrawn %s from your account Total: %s ", FormatMoney(withdraw),FormatMoney(PlayerInfo[playerid][pAccount])); SendClientMessage(playerid, COLOR_YELLOW, string); } else { SendClientMessage(playerid, COLOR_GRAD1, "You are not at the Bank / ATM !"); } return 1; }2 answers to this question
Recommended Posts