[FilterScript] BANK SYSTEM V0.1 - Arjanz
#1

Hey guyz today i am releasing my gamemode, it is a very simple bank system useful for roleplay and some other kinds of servers

Bank System v0.1

Features
  • ATM System
  • Full Maked Interior
  • Exterior Flags

Next Version
  • Rob System
(Tell me more if you wants to be in)


Information

This Filterscript doesnt have saving system thats why its entered in [pawn}[/pawn} please make that self, or request to script that in next version


Include
  • zcmd
  • sscanf2
  • a_samp

Plugins
  • sscanf

Code

pawn Код:
#include <a_samp>
#include <zcmd>
#include <sscanf2>

#define COLOR_RED 0xFF0000AA

enum pInfo
{
    pBank
}
new PlayerInfo[MAX_PLAYERS][pInfo];

public OnFilterScriptInit()
{
   CreateObject(13007,2491.5000000,-1668.9000200,-0.6000000,0.0000000,0.0000000,0.0000000); //object(sw_bankbits) (1)
   CreateObject(18030,2504.6001000,-1674.5000000,0.0000000,0.0000000,0.0000000,0.0000000); //object(gap) (1)
   CreateObject(2946,2484.3501000,-1660.8000500,-2.4000000,0.0000000,0.0000000,270.0000000); //object(cr_door_03) (1)
   CreateObject(2946,2484.3999000,-1660.8000500,-2.4000000,0.0000000,0.0000000,90.0000000); //object(cr_door_03) (2)
   CreateObject(1506,2518.8000500,-1677.0000000,-2.2000000,0.0000000,0.0000000,0.0000000); //object(gen_doorext08) (1)
   CreateObject(1491,2518.8000500,-1680.9000200,-2.2000000,0.0000000,0.0000000,0.0000000); //object(gen_doorint01) (1)
   CreateObject(1550,2517.3999000,-1683.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (2)
   CreateObject(1550,2517.3999000,-1681.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (4)
   CreateObject(1550,2517.3999000,-1681.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (5)
   CreateObject(1550,2517.3999000,-1682.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (7)
   CreateObject(1550,2517.3999000,-1683.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (8)
   CreateObject(1550,2517.8000500,-1682.1999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (10)
   CreateObject(1550,2517.8999000,-1681.6999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (11)
   CreateObject(1550,2517.3999000,-1682.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (12)
   CreateObject(1550,2517.8999000,-1681.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (13)
   CreateObject(1550,2517.8000500,-1682.6999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (15)
   CreateObject(1550,2518.3999000,-1681.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (16)
   CreateObject(1550,2517.8000500,-1683.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (17)
   CreateObject(1550,2517.8000500,-1683.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (18)
   CreateObject(1550,2518.3999000,-1681.6999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (19)
   CreateObject(1550,2518.3000500,-1682.1999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (20)
   CreateObject(1550,2518.3000500,-1682.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (21)
   CreateObject(1550,2518.3000500,-1683.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (22)
   CreateObject(1550,2518.3000500,-1683.9000200,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (23)
   CreateObject(2332,2520.6001000,-1681.5000000,-1.7000000,0.0000000,0.0000000,270.0000000); //object(kev_safe) (1)
   CreateObject(1829,2520.3000500,-1683.5999800,-1.7000000,0.0000000,0.0000000,271.0000000); //object(man_safenew) (1)
   CreateObject(1550,2520.6001000,-1682.5999800,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (24)
   CreateObject(1274,2519.5000000,-1681.0999800,0.9000000,0.0000000,0.0000000,0.0000000); //object(bigdollar) (1)
   CreateObject(2190,2488.8999000,-1662.3000500,-1.4000000,0.0000000,0.0000000,0.0000000); //object(pc_1) (1)
   CreateObject(2777,2489.8000500,-1662.3000500,-1.9000000,0.0000000,0.0000000,0.0000000); //object(lee_stripchair1) (1)
   CreateObject(1491,2501.0000000,-1672.5000000,-2.8000000,0.0000000,0.0000000,90.0000000); //object(gen_doorint01) (2)
   CreateObject(1649,2521.1499000,-1678.8000500,-0.5000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (1)
   CreateObject(1622,2521.1001000,-1677.5999800,1.2000000,0.0000000,0.0000000,0.0000000); //object(nt_securecam2_01) (1)
   CreateObject(1505,2498.8000500,-1688.0000000,-2.3000000,0.0000000,0.0000000,0.0000000); //object(gen_doorext07) (1)
   CreateObject(7090,1455.0000000,-1019.9000200,38.8000000,0.0000000,0.0000000,270.0000000); //object(vegasflag1) (1)
   CreateObject(7090,1461.3000500,-1020.4000200,38.8000000,0.0000000,0.0000000,269.9950000); //object(vegasflag1) (2)
   CreateObject(7090,1467.5000000,-1020.0000000,38.8000000,0.0000000,0.0000000,269.9950000); //object(vegasflag1) (3)
   CreateObject(2942,1464.5999800,-1490.6999500,13.2000000,0.0000000,0.0000000,0.0000000); //object(kmb_atm1) (1)
   CreateObject(2942,1455.5000000,-1755.1999500,13.2000000,0.0000000,0.0000000,180.0000000); //object(kmb_atm1) (2)
   CreateObject(2942,1546.4000200,-1714.4000200,13.2000000,0.0000000,0.0000000,0.0000000); //object(kmb_atm1) (3)

   Create3DTextLabel("Main Bank\nEntering Point\n(( /enter to enter in ))", COLOR_RED, 1457.5433, -1010.5931, 26.8438, 20.0, 0, 0);
   Create3DTextLabel("Main Bank\nExiting Point\n(( /exit to exit in )", COLOR_RED, 2484.4021, -1662.1301, -1.3672, 20.0, 0, 0);

   Create3DTextLabel("ATM Machine\n(( /withdraw to withdraw ))\n(( /deposit to deposit ))\n(( /balance to check Current Balance ))", COLOR_RED, 1464.5999800, -1490.6999500, 13.2000000, 20.0, 0, 0);
   Create3DTextLabel("ATM Machine\n(( /withdraw to withdraw ))\n(( /deposit to deposit ))\n(( /balance to check Current Balance ))", COLOR_RED, 1455.5000000, -1755.1999500, 13.2000000, 20.0, 0, 0);
   Create3DTextLabel("ATM Machine\n(( /withdraw to withdraw ))\n(( /deposit to deposit ))\n(( /balance to check Current Balance ))", COLOR_RED, 1546.4000200, -1714.4000200, 13.2000000, 20.0, 0, 0);

   CreatePickup(1318, 0, 1457.5433, -1010.5931, 26.8438, 0);
   CreatePickup(1318, 0, 2484.4021, -1662.1301, -1.3672, 0);
   return 1;
}

CMD:withdraw(playerid, params[])
{
   if(IsPlayerInRangeOfPoint(playerid, 20.0, 2502.0930, -1673.2775, -1.3672) || IsPlayerInRangeOfPoint(playerid, 2.0, 1464.5999800, -1490.6999500, 13.2000000) || IsPlayerInRangeOfPoint(playerid, 2.0, 1455.5000000, -1755.1999500, 13.2000000) || IsPlayerInRangeOfPoint(playerid, 2.0, 1546.4000200, -1714.4000200, 13.2000000))
   {
      new money, string[128];
      if(sscanf(params, "i", money)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /withdraw [money]");
      if(PlayerInfo[playerid][pBank] < money) return SendClientMessage(playerid, COLOR_RED, "You Don't have that much Money in your Account");
      GivePlayerMoney(playerid, money);
      PlayerInfo[playerid][pBank] -= money;
      format(string,sizeof(string),"Withdraw, %d$ from your bank account, Total Money In Bank Now: %d",money, PlayerInfo[playerid][pBank]);
      SendClientMessage(playerid,COLOR_RED,string);
   }
   else SendClientMessage(playerid, COLOR_RED, "You Must be near ATM or at Bank to Use this Command");
   return 1;
}

CMD:deposit(playerid, params[])
{
   if(IsPlayerInRangeOfPoint(playerid, 20.0, 2502.0930, -1673.2775, -1.3672) || IsPlayerInRangeOfPoint(playerid, 2.0, 1464.5999800, -1490.6999500, 13.2000000) || IsPlayerInRangeOfPoint(playerid, 2.0, 1455.5000000, -1755.1999500, 13.2000000) || IsPlayerInRangeOfPoint(playerid, 2.0, 1546.4000200, -1714.4000200, 13.2000000))
   {
      new money, string[128];
      if(sscanf(params, "i", money)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /deposit [money]");
      if(money < PlayerInfo[playerid][pBank]) return SendClientMessage(playerid, COLOR_RED, "You Don't have that much Money in Hands.");
      GivePlayerMoney(playerid, -money);
      PlayerInfo[playerid][pBank] += money;
      format(string,sizeof(string),"Deposit, %d$ to bank, Total Money In Bank Now: %d",money, PlayerInfo[playerid][pBank]);
      SendClientMessage(playerid,COLOR_RED,string);
   }
   else SendClientMessage(playerid, COLOR_RED, "You Must be near ATM or at Bank to Use this Command");
   return 1;
}

CMD:balance(playerid, params[])
{
   if(IsPlayerInRangeOfPoint(playerid, 20.0, 2502.0930, -1673.2775, -1.3672) || IsPlayerInRangeOfPoint(playerid, 2.0, 1464.5999800, -1490.6999500, 13.2000000) || IsPlayerInRangeOfPoint(playerid, 2.0, 1455.5000000, -1755.1999500, 13.2000000) || IsPlayerInRangeOfPoint(playerid, 2.0, 1546.4000200, -1714.4000200, 13.2000000))
   {
      new string[128];
      format(string,sizeof(string),"[BALANCE]: %d",PlayerInfo[playerid][pBank]);
      SendClientMessage(playerid,COLOR_RED,string);
   }
   else SendClientMessage(playerid, COLOR_RED, "You Must be near ATM or at Bank to Use this Command");
   return 1;
}

CMD:enter(playerid, parms[])
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 1457.5433, -1010.5931, 26.8438))
   {
      SetPlayerPos(playerid, 2484.4021, -1662.1301, -1.3672);
      return 1;
   }
   else SendClientMessage(playerid, COLOR_RED, "You must be near entering place of Bank to use this command");
   return 1;
}

CMD:exit(playerid, parms[])
{
   if(IsPlayerInRangeOfPoint(playerid, 3.0, 2484.4021, -1662.1301, -1.3672))
   {
      SetPlayerPos(playerid, 1457.0161, -1010.7631, 26.8438);
      return 1;
   }
   else SendClientMessage(playerid, COLOR_RED, "You must be near exiting place of Bank to use this command");
   return 1;
}
SCREENSHOTS : http://s29.postimg.org/u4lkkjek7/sa_mp_038.png

http://s29.postimg.org/4kocb7zhz/sa_mp_036.png

http://s30.postimg.org/c7l259x01/sa_mp_035.png

http://s24.postimg.org/ry4g3rpf5/sa_mp_033.png

http://s24.postimg.org/ndi9ou5pt/sa_mp_034.png

CREDITS : ME - TO make this FS
BLACKBOMB - TO help me with the bugs



DOWNLOAD : http://sh.st/qFFjr

+REP IF this FS helped you thnks.
Reply
#2

nice
Reply
#3

Quote:
Originally Posted by Namer
Посмотреть сообщение
nice
Thnks
Reply
#4

Nice work.
Reply
#5

Quote:
Originally Posted by MattTucker
Посмотреть сообщение
Nice work.
Thnks sir
Reply
#6

Nice work, hope you success in next version .
Reply
#7

Amazing script
Reply
#8

Quote:
Originally Posted by hhaaoo123
Посмотреть сообщение
Nice work, hope you success in next version .
Quote:
Originally Posted by Ozil
Посмотреть сообщение
Amazing script
Thnks guyz
Reply
#9

Nice Work Arjan
Reply
#10

Quote:
Originally Posted by BlackBomb
Посмотреть сообщение
Nice Work Arjan
Thnks a lot in helping
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)