18.09.2015, 19:15
PHP код:
CMD:withdraw(playerid, params[])
{
if(!IsPlayerInRangeOfPoint(playerid, 2, -2455.4519, 503.9336, 30.0781)) return SendClientMessage(playerid, -1,"You are not at the Bank");
new amount;
if(sscanf(params,"d", amount)) return SendClientMessage(playerid, -1,"USAGE: /withdraw [amount]");
if (amount> pInfo[playerid][Bank] || amount< 1) return SendClientMessage(playerid, COLOR_GRAD2, " INVALID TRANZACTION!");
GivePlayerMoney(playerid, amount);
pInfo[playerid][Bank]--;
return 1;
}