14.10.2016, 11:57
(
Последний раз редактировалось TYDS; 14.10.2016 в 14:17.
Причина: DELETE
)
DELETE
if(dialogid == DIALOG_NAME && response == 1) { new amount = strval(inputtext); if (amount > PlayerInfo[playerid][pAccount] || amount < 1) { SendClientMessageEx(playerid, COLOR_GRAD2, " You don't have that much!"); return 1; } if(gettime()-GetPVarInt(playerid, "LastTransaction") < 10) return SendClientMessageEx(playerid, COLOR_GRAD2, "You can only make a transaction once every 10 seconds, please wait!"); SetPVarInt(playerid, "LastTransaction", gettime()); GivePlayerCash(playerid,amount); PlayerInfo[playerid][pAccount]=PlayerInfo[playerid][pAccount]-amount; format(string, sizeof(string), " You have withdrawn $%s from your account. Current balance: $%s ", number_format(amount), number_format(PlayerInfo[playerid][pAccount])); SendClientMessageEx(playerid, COLOR_YELLOW, string); OnPlayerStatsUpdate(playerid); }
COMMAND:withdraw(playerid, params[]) { if(!IsPlayerInRangeOfPoint(playerid, 15.0, 2308.7346, -11.0134, 26.7422)) { SendClientMessageEx(playerid, COLOR_GREY, "You are not in a bank"); return 1; } if(PlayerInfo[playerid][pFreezeBank] == 1) return SendClientMessageEx(playerid, COLOR_GREY, "The Bank Is CLose Now"); }