Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ////////////////////////////////////////////
- /////////////////RatMachines////////////////
- ////////////Made by: [FSaF]Jarno////////////
- ////////////////Version: 1.0////////////////
- //////You are free to edit this script//////
- //////for your own use, if you won't //////
- //////claim it as your own. //////
- //////Do not reupload this script to //////
- //////any website without asking the //////
- //////author. Report any bugs to the //////
- //////forum post. //////
- //////Note: This script is not 100 //////
- //////percent made by [FSaF]Jarno. //////
- //////Some functions are found from //////
- //////the internet. (Such as GetXYIn //////
- //////FrontOfPlayer) //////
- ////////////////////////////////////////////
- /////////////////Have fun!//////////////////
- ////////////////////////////////////////////
- ///////////////MACHINE IDS//////////////////
- ////////0 - Sprunk machine ////////
- ////////1 - Weapon machine ////////
- ////////2 - Poker machine ////////
- ////////3 - ATM ////////
- ////////////////////////////////////////////
- #include <a_samp>
- #include <dutils>
- #include <dini>
- // These are the defines to permissions of creating/deleting machines.
- #define ADMINCHECK "GetAdminLevel" // Replace this with your own adminlevel check callback. If you don't have one, leave it like that and define "RCON_ONLY" to true.
- #define ADMINLEVEL 3 // Adminlevel needed to use the script. If you are only using RCON, leave this like that.
- #define ADMINFORMAT "%d" // Adminlevel check format. If you use RCON instead of your own scripts, don't change this.
- #define ADMININPUT playerid // Adminlevel input. If oyu use RCON instead of your own scripts, don't change this.
- #define RCON_ONLY false // If you want to use RCON instead of your own adminscript define this to true.
- #define VERSION 1.0
- #define SPRUNKINDEX 6 // Change this to an open object attaching slot if you need
- #define HEALTHADDITION 10 // Change this to the amount of HP the sprunk machine should restore.
- #define SPRUNKCOST 5 // Change this to the amount of money the sprunk machine will take per use.
- #define WEAPON 29 // Change this to the weapon you want to be given from the gun machines.
- #define AMMO 300 // Change this to the amount of bullets you want the gun machine to give you.
- #define WEAPONCOST 300 // Change this to the amount of money the gun machine will take per use.
- #define POKERCOST 80 // Change this to the amount of money the poker machine will take per use. (Note: The maximum win will be POKERCOST*256)
- #pragma unused ret_memcpy
- new VendingType[MAX_OBJECTS] = -1;
- new PlayerLastMachine[MAX_PLAYERS];
- new UsingPoker[MAX_PLAYERS];
- new Text:ATM[MAX_PLAYERS];
- new PlayerATMLine[MAX_PLAYERS];
- new UsingATM[MAX_PLAYERS];
- new MenuID[MAX_PLAYERS];
- new BankMoney[MAX_PLAYERS];
- forward Animation(playerid,id);
- forward SpecialAction(playerid,action);
- stock LoadMachines() {
- for(new i; i<MAX_OBJECTS; i++)
- {
- if (VendingType[i] != -1) DestroyObject(i);
- }
- new File:hFile;
- new tmpres[MAX_STRING],i=0;
- new machinetype;
- new Float:x;
- new Float:y;
- new Float:z;
- new Float:a;
- new file[256];
- format(file,256,"/RatMachines/machines.txt");
- hFile = fopen(file, io_read);
- if (hFile)
- {
- tmpres[0]=0;
- while (fread(hFile, tmpres)) {
- StripNewLine(tmpres);
- if (tmpres[0]!=0) {
- machinetype = strval(strtok(tmpres,i,','));
- //spawn X
- x = Float:floatstr(strtok(tmpres,i,','));
- //spawn Y
- y = Float:floatstr(strtok(tmpres,i,','));
- //spawn Z
- z = Float:floatstr(strtok(tmpres,i,','));
- //rotation x
- a = Float:floatstr(strtok(tmpres,i,','));
- if (machinetype == 0)VendingType[CreateObject(955,x,y,z,0,0,a)] = 0;
- if (machinetype == 1)VendingType[CreateObject(18885,x,y,z,0,0,a)] = 1;
- if (machinetype == 2)VendingType[CreateObject(1515,x,y,z,0,0,a)] = 2;
- if (machinetype == 3)VendingType[CreateObject(2942,x,y,z,0,0,a)] = 3;
- }
- tmpres[0]=0;
- i=0;
- }
- }
- fclose(hFile);
- return 1;
- }
- public SpecialAction(playerid,action)
- {
- SetPlayerSpecialAction(playerid,action);
- return 1;
- }
- public Animation(playerid,id)
- {
- if (id == 1)ApplyAnimation(playerid,"VENDING","VEND_Drink_P",1.4,0,1,1,0,1200,1);
- if (id == 0)
- {
- ApplyAnimation(playerid,"VENDING","VEND_Use_pt2",1.4,0,1,1,0,400,1);
- SetPlayerAttachedObject(playerid,SPRUNKINDEX,1546,5,0.1,0.05,0,0,180,0);
- }
- if (id == 2) RemovePlayerAttachedObject(playerid,SPRUNKINDEX);
- if (id == 3)
- {
- new Float:h;
- GetPlayerHealth(playerid,h);
- if (h+HEALTHADDITION <= 100) h = h+HEALTHADDITION;
- SetPlayerHealth(playerid,h);
- }
- if (id == 4)
- {
- GivePlayerWeapon(playerid,WEAPON,AMMO);
- }
- if (id == 5)
- {
- new msg[128];
- new win = random(60);
- new won;
- if ((win >= 0) && (win < 5)) format(msg,128,"You won %d$!",won =POKERCOST*2);
- else if ((win >= 5) && (win < 10)) format(msg,128,"You won %d$!",won =POKERCOST*4);
- else if ((win >= 10) && (win < 15)) format(msg,128,"You won %d$!",won =POKERCOST*8);
- else if ((win >= 15) && (win < 18)) format(msg,128,"You won %d$!",won =POKERCOST*16);
- else if ((win >= 18) && (win < 20)) format(msg,128,"You won %d$!",won =POKERCOST*32);
- else if (win == 20) format(msg,128,"You won %d$!",won =POKERCOST*256);
- else format(msg,128,"No win!");
- GivePlayerMoney(playerid,won);
- SendClientMessage(playerid,0xAAFFAAFF,msg);
- UsingPoker[playerid] = 0;
- }
- if (id == 6)
- {
- TextDrawSetString(ATM[playerid],"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
- TextDrawShowForPlayer(playerid,ATM[playerid]);
- SetTimerEx("Animation",1000,0,"dd",playerid,7);
- }
- if (id == 7)
- {
- new msg[512];
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->Take money out~n~ Deposit money ~n~ Exit ~n~~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- TextDrawSetString(ATM[playerid],msg);
- PlayerATMLine[playerid] = 1;
- MenuID[playerid] = 1;
- }
- return 1;
- }
- stock GetName(playerid)
- {
- new PlayerName[32];
- GetPlayerName(playerid,PlayerName,32);
- return PlayerName;
- }
- public OnFilterScriptInit()
- {
- for(new i; i<MAX_OBJECTS; i++)
- {
- VendingType[i] = -1;
- }
- for(new i; i<MAX_PLAYERS; i++)
- {
- PlayerLastMachine[i] = -1;
- ATM[i] = TextDrawCreate(320,1,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~");
- TextDrawUseBox(ATM[i],1);
- TextDrawBoxColor(ATM[i],0x0000FFFF);
- TextDrawAlignment(ATM[i],2);
- TextDrawSetProportional(ATM[i],1);
- if (IsPlayerConnected(i))OnPlayerConnect(i);
- }
- print("\n\n--------------------------------------");
- printf(" RatMachines v%2.1f by [FSaF]Jarno loaded!",VERSION);
- print("--------------------------------------\n\n");
- LoadMachines();
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new file[128];
- format(file,128,"/RatMachines/ATMDATA/%s.ini",GetName(playerid));
- if (!dini_Exists(file))dini_Create(file);
- BankMoney[playerid] = dini_Int(file,"ATM");
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- new file[128];
- format(file,128,"/RatMachines/ATMDATA/%s.ini",GetName(playerid));
- if (!dini_Exists(file))dini_Create(file);
- dini_IntSet(file,"ATM",BankMoney[playerid]);
- return 1;
- }
- public OnGameModeInit()
- {
- LoadMachines();
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n\n--------------------------------------");
- printf(" RatMachines v%2.1f by [FSaF]Jarno unloaded!",VERSION);
- print("--------------------------------------\n\n");
- new File:F_SAVE = fopen("/RatMachines/machines.txt", io_write);
- if(F_SAVE)
- {
- for(new i; i<MAX_OBJECTS; i++)
- {
- if (VendingType[i] != -1)
- {
- new Float:x, Float:y, Float:z, Float:a;
- GetObjectRot(i,x,y,a);
- GetObjectPos(i,x,y,z);
- new line[128];
- format(line,128,"%d,%f,%f,%f,%f\r\n",VendingType[i],x,y,z,a);
- fwrite(F_SAVE,line);
- DestroyObject(i);
- }
- }
- }
- fclose(F_SAVE);
- for(new i; i<MAX_PLAYERS; i++)
- {
- TextDrawDestroy(ATM[i]);
- if (IsPlayerConnected(i))OnPlayerDisconnect(i,1);
- }
- return 1;
- }
- stock GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
- {
- new Float:a;
- GetPlayerPos(playerid, x, y, a);
- GetPlayerFacingAngle(playerid, a);
- if (GetPlayerVehicleID(playerid))
- {
- GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
- }
- x += (distance * floatsin(-a, degrees));
- y += (distance * floatcos(-a, degrees));
- }
- stock GetXYInFrontOfObject(playerid, &Float:x, &Float:y, Float:distance)
- {
- new Float:a, Float:z;
- GetObjectRot(playerid,x,y,a);
- GetObjectPos(playerid, x, y, z);
- x += (distance * floatsin(-a, degrees));
- y += (distance * floatcos(-a, degrees));
- }
- public OnPlayerCommandText(playerid,cmdtext[])
- {
- new cmd[256];
- new idx;
- cmd = strtok(cmdtext,idx);
- #if RCON_ONLY == true
- if (IsPlayerAdmin(playerid))
- {
- #else
- if (CallRemoteFunction(ADMINCHECK,ADMINFORMAT,ADMININPUT) >= ADMINLEVEL)
- {
- #endif
- if (!strcmp("/createmachine",cmd,true))
- {
- new Float:x, Float:y, Float:z, Float:a, tmp[256], mach;
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,a);
- tmp = strtok(cmdtext,idx);
- if (strval(tmp) == 0)VendingType[mach = CreateObject(955,x,y,z-0.58,0,0,a)] = 0;
- if (strval(tmp) == 1)VendingType[mach = CreateObject(18885,x,y,z,0,0,a)] = 1;
- if (strval(tmp) == 2)VendingType[mach = CreateObject(1515,x,y,z-1,0,0,a)] = 2;
- if (strval(tmp) == 3)VendingType[mach = CreateObject(2942,x,y,z-0.4,0,0,a)] = 3;
- PlayerLastMachine[playerid] = mach;
- GetXYInFrontOfPlayer(playerid,x,y,-0.75);
- SetPlayerPos(playerid,x,y,z);
- return 1;
- }
- if (!strcmp("/undolastmachine",cmd,true))
- {
- DestroyObject(PlayerLastMachine[playerid]);
- PlayerLastMachine[playerid] = -1;
- return 1;
- }
- if (!strcmp("/testanim",cmd,true))
- {
- new tmp[256],tmp2[256], tmp3[256];
- tmp = strtok(cmdtext,idx);
- tmp2 = strtok(cmdtext,idx);
- tmp3 = strtok(cmdtext,idx);
- ApplyAnimation(playerid,tmp,tmp2,1.4,0,1,1,0,strval(tmp3));
- return 1;
- }
- if (!strcmp("/anim",cmd,true))
- {
- ApplyAnimation(playerid,"VENDING","VEND_Use",1.4,0,1,1,0,2500);
- SetTimerEx("Animation",2500,0,"dd",playerid,0);
- SetTimerEx("Animation",3500,0,"dd",playerid,1);
- return 1;
- }
- }
- return 0;
- }
- public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
- {
- if ((newkeys & KEY_SECONDARY_ATTACK) && !(oldkeys & KEY_SECONDARY_ATTACK))
- {
- for(new i; i<MAX_OBJECTS; i++)
- {
- if (VendingType[i] == 0)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(i,x,y,z);
- if (IsPlayerInRangeOfPoint(playerid,1.0,x,y,z+1))
- {
- GetXYInFrontOfObject(i,x,y,-1.1);
- z = z+0.5;
- SetPlayerPos(playerid,x,y,z);
- GetObjectRot(i,x,y,z);
- SetPlayerFacingAngle(playerid,z);
- ApplyAnimation(playerid,"VENDING","VEND_Use",1.4,0,1,1,0,2500,1);
- SetTimerEx("Animation",2500,0,"dd",playerid,0);
- SetTimerEx("Animation",2700,0,"dd",playerid,3);
- SetTimerEx("Animation",2900,0,"dd",playerid,1);
- SetTimerEx("Animation",4100,0,"dd",playerid,2);
- GivePlayerMoney(playerid,-SPRUNKCOST);
- CallRemoteFunction("OnRatMachineUse","dd",playerid,0);
- }
- }
- if (VendingType[i] == 1)
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(i,x,y,z);
- if (IsPlayerInRangeOfPoint(playerid,1.0,x,y,z))
- {
- GetXYInFrontOfObject(i,x,y,-1.1);
- SetPlayerPos(playerid,x,y,z);
- GetObjectRot(i,x,y,z);
- SetPlayerFacingAngle(playerid,z);
- ApplyAnimation(playerid,"VENDING","VEND_Use",1.4,0,1,1,0,2500,1);
- SetTimerEx("Animation",2500,0,"dd",playerid,4);
- GivePlayerMoney(playerid,-WEAPONCOST);
- CallRemoteFunction("OnRatMachineUse","dd",playerid,1);
- }
- }
- if ((VendingType[i] == 2) && (UsingPoker[playerid] == 0))
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(i,x,y,z);
- if (IsPlayerInRangeOfPoint(playerid,1.0,x,y,z+1))
- {
- GetXYInFrontOfObject(i,x,y,-0.7);
- z = z+1;
- SetPlayerPos(playerid,x,y,z);
- GetObjectRot(i,x,y,z);
- SetPlayerFacingAngle(playerid,z);
- ApplyAnimation(playerid,"CASINO","Slot_bet_01",1.4,0,0,0,0,3000,1);
- SetTimerEx("Animation",3000,0,"dd",playerid,5);
- GivePlayerMoney(playerid,-POKERCOST);
- CallRemoteFunction("OnRatMachineUse","dd",playerid,2);
- UsingPoker[playerid] = 1;
- }
- }
- if ((VendingType[i] == 3) && (UsingATM[playerid] == 0))
- {
- new Float:x, Float:y, Float:z;
- GetObjectPos(i,x,y,z);
- if (IsPlayerInRangeOfPoint(playerid,1.0,x,y,z+0.4))
- {
- GetXYInFrontOfObject(i,x,y,-0.88);
- z = z+0.4;
- SetPlayerPos(playerid,x,y,z);
- GetObjectRot(i,x,y,z);
- SetPlayerFacingAngle(playerid,z);
- TogglePlayerControllable(playerid,0);
- ApplyAnimation(playerid,"CASINO","Slot_bet_01",1.4,1,0,0,1,0,1);
- SetTimerEx("Animation",3000,0,"dd",playerid,6);
- CallRemoteFunction("OnRatMachineUse","dd",playerid,3);
- UsingATM[playerid] = 1;
- }
- }
- if ((VendingType[i] == 3) && (UsingATM[playerid] == 1))
- {
- if (MenuID[playerid] == 1)
- {
- new msg[512];
- if (PlayerATMLine[playerid] == 1)
- {
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- TextDrawSetString(ATM[playerid],msg);
- MenuID[playerid] = 2;
- }
- if (PlayerATMLine[playerid] == 2)
- {
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- TextDrawSetString(ATM[playerid],msg);
- MenuID[playerid] = 3;
- }
- if (PlayerATMLine[playerid] == 3)
- {
- TextDrawHideForAll(ATM[playerid]);
- MenuID[playerid] = 0;
- UsingATM[playerid] = 0;
- ClearAnimations(playerid,1);
- TogglePlayerControllable(playerid,1);
- }
- return 1;
- }
- if (MenuID[playerid] == 3)
- {
- new money = GetPlayerMoney(playerid);
- new msg[512];
- if (PlayerATMLine[playerid] == 1)if (money >= 100) BankMoney[playerid] += 100, GivePlayerMoney(playerid,-100);
- if (PlayerATMLine[playerid] == 2)if (money >= 500) BankMoney[playerid] += 500, GivePlayerMoney(playerid,-500);
- if (PlayerATMLine[playerid] == 3)if (money >= 1000) BankMoney[playerid] += 1000, GivePlayerMoney(playerid,-1000);
- if (PlayerATMLine[playerid] == 4)if (money >= 5000) BankMoney[playerid] += 5000, GivePlayerMoney(playerid,-5000);
- if (PlayerATMLine[playerid] == 5)if (money >= 10000) BankMoney[playerid] += 10000, GivePlayerMoney(playerid,-10000);
- if (PlayerATMLine[playerid] == 6)if (money >= 50000) BankMoney[playerid] += 50000, GivePlayerMoney(playerid,-50000);
- if (PlayerATMLine[playerid] == 7)if (money >= 100000) BankMoney[playerid] += 100000, GivePlayerMoney(playerid,-100000);
- if (PlayerATMLine[playerid] == 8)if (money >= 500000) BankMoney[playerid] += 500000, GivePlayerMoney(playerid,-500000);
- if (PlayerATMLine[playerid] == 1)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 2)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~-->500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 3)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~-->1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 4)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~-->5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 5)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~-->10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 6)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~-->50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 7)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~-->100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 8)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~-->500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 9)
- {
- MenuID[playerid] = 1;
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->Take money out~n~ Deposit money ~n~ Exit ~n~~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- }
- TextDrawSetString(ATM[playerid],msg);
- return 1;
- }
- if (MenuID[playerid] == 2)
- {
- new msg[512];
- if (PlayerATMLine[playerid] == 1)if (BankMoney[playerid] >= 100) BankMoney[playerid] -= 100, GivePlayerMoney(playerid,100);
- if (PlayerATMLine[playerid] == 2)if (BankMoney[playerid] >= 500) BankMoney[playerid] -= 500, GivePlayerMoney(playerid,500);
- if (PlayerATMLine[playerid] == 3)if (BankMoney[playerid] >= 1000) BankMoney[playerid] -= 1000, GivePlayerMoney(playerid,1000);
- if (PlayerATMLine[playerid] == 4)if (BankMoney[playerid] >= 5000) BankMoney[playerid] -= 5000, GivePlayerMoney(playerid,5000);
- if (PlayerATMLine[playerid] == 5)if (BankMoney[playerid] >= 10000) BankMoney[playerid] -= 10000, GivePlayerMoney(playerid,10000);
- if (PlayerATMLine[playerid] == 6)if (BankMoney[playerid] >= 50000) BankMoney[playerid] -= 50000, GivePlayerMoney(playerid,50000);
- if (PlayerATMLine[playerid] == 7)if (BankMoney[playerid] >= 100000) BankMoney[playerid] -= 100000, GivePlayerMoney(playerid,100000);
- if (PlayerATMLine[playerid] == 8)if (BankMoney[playerid] >= 500000) BankMoney[playerid] -= 500000, GivePlayerMoney(playerid,500000);
- if (PlayerATMLine[playerid] == 1)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 2)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~-->500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 3)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~-->1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 4)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~-->5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 5)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~-->10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 6)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~-->50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 7)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~-->100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 8)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~-->500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 9)
- {
- MenuID[playerid] = 1;
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->Take money out~n~ Deposit money ~n~ Exit ~n~~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- }
- TextDrawSetString(ATM[playerid],msg);
- return 1;
- }
- }
- }
- }
- if ((newkeys & KEY_SPRINT) && !(oldkeys & KEY_SPRINT))
- {
- if (MenuID[playerid] == 1)
- {
- new msg[512];
- PlayerATMLine[playerid]++;
- if (PlayerATMLine[playerid] > 3) PlayerATMLine[playerid] = 1;
- if (PlayerATMLine[playerid] == 1)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->Take money out~n~ Deposit money ~n~ Exit ~n~~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 2)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ Take money out~n~-->Deposit money ~n~ Exit ~n~~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 3)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ Take money out~n~ Deposit money ~n~-->Exit ~n~~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- TextDrawSetString(ATM[playerid],msg);
- return 1;
- }
- if (MenuID[playerid] == 2)
- {
- new msg[512];
- PlayerATMLine[playerid]++;
- if (PlayerATMLine[playerid] > 9) PlayerATMLine[playerid] = 1;
- if (PlayerATMLine[playerid] == 1)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 2)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~-->500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 3)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~-->1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 4)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~-->5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 5)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~-->10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 6)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~-->50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 7)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~-->100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 8)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~-->500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 9)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~-->Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- TextDrawSetString(ATM[playerid],msg);
- return 1;
- }
- if (MenuID[playerid] == 3)
- {
- new msg[512];
- PlayerATMLine[playerid]++;
- if (PlayerATMLine[playerid] > 9) PlayerATMLine[playerid] = 1;
- if (PlayerATMLine[playerid] == 1)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~-->100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 2)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~-->500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 3)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~-->1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 4)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~-->5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 5)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~-->10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 6)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~-->50 000 ~n~ 100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 7)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~-->100 000$~n~ 500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 8)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~-->500 000$~n~ Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- if (PlayerATMLine[playerid] == 9)
- format(msg,512,"~n~RatMachines ATM~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~Navigate by using ~k~~PED_SPRINT~ and select with ~k~~VEHICLE_ENTER_EXIT~~n~~n~ 100$ ~n~ 500$ ~n~ 1000$ ~n~ 5000$ ~n~ 10 000$ ~n~ 50 000 ~n~ 100 000$~n~ 500 000$~n~-->Exit ~n~~n~~n~~n~~n~~n~Currently you have %d dollars in your bank account.~n~~n~~n~~n~~n~~n~~n~~n~",BankMoney[playerid]);
- TextDrawSetString(ATM[playerid],msg);
- return 1;
- }
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- ApplyAnimation(playerid,"VENDING","null",1.4,0,1,1,0,0);
- ApplyAnimation(playerid,"CASINO","null",1.4,0,1,1,0,0);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment