daily pastebin goal


a guest Aug 10th, 2018 55 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
  1. // add to gm please, not sure if own is upto date also you have edited includes. cheers pal
  3. CMD:bankall(playerid, params[])
  4. {
  5.     new money, msg[128];
  6.     if (!logged_{playerid}) return SendClientMessage(playerid, ERRORCOLOR, "You must be registered to use this command. Please use /register to register.");
  8.     {
  9.         if (money > GetPlayerMoney(playerid) || GetPlayerMoney(playerid) < 1) return SendClientMessage(playerid, ERRORCOLOR, "Invalid amount");
  10.         if (bank[playerid] + GetPlayerMoney(playerid) > banklimit[playerid]) return format(msg, sizeof(msg), "Invalid amount. Your bank limit is $%d. To raise your banklimit use /banklimit.", banklimit[playerid]), SendClientMessage(playerid, ERRORCOLOR, msg);
  11.         bank[playerid] += GetPlayerMoney(playerid);
  12.         format(msg, sizeof(msg), "You have deposited $%d to your bank account. Your new balance is $%d.", GetPlayerMoney(playerid), bank[playerid]), SendClientMessage(playerid, 0xFFFF00FF, msg);
  13.         GivePlayerMoney(playerid, -GetPlayerMoney(playerid));
  14.     }
  15.     return 1;
  16. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!