Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include zcmd
- #include sscanf2
- #include <Dini> // This include is use for saving data's
- #include <Dutils> // This include is used for some important function
- #include <Dudb> // This include is used for hashing password
- #pragma unused ret_memcpy // This avoid the ret_memcpy warning
- new Killz[MAX_PLAYERS]; // We have used this variable because to save the kills of the player
- new Deathz[MAX_PLAYERS]; // Same on here
- #define savefolder "/save/%s.ini" // This defines the file name and folder
- #define CASH_PRIZE 500000 //This is the prize that the player will win when killing the terrirost!
- #define WEAPON_ID 34 //This is the weapon id that all players will recived to help kill him!
- #define WEAPON_AMMO 400 ///this is the ammo!
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_RED 0xAA3333AA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_BLUE 0x2641FEAA
- #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
- #define yellow 0xFFFF00AA
- #define green 0x33FF33AA
- #define red 0xFF0000AA
- #define white 0xFFFFFFAA
- #define pink 0xCCFF00FFAA
- #define blue 0x00FFFFAA
- #define grey 0xAFAFAFAA
- #define darkred 0x660000AA
- #define orange 0xFF8040FF
- #define green2 0x33AA33AA
- #define red2 0xAA3333AA
- #define COLOR_GOLD 0xB8860BAA
- #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
- #define COLOR_ROYALBLUE 0x4169E1FF
- #define dialogID 19940125
- #define AnswerMessageColor 0xFFFFFFFF
- new vSys_Question[64],vSys_Answer1[10],vSys_Answer2[10];
- new AnswersForAnswer1,AnswersForAnswer2,NeedAnswers;
- forward VehicleTimerHealth(playerid);
- forward SendMSG();
- new IsGameOn;
- new PlayerHitman[200];
- new lolz[256];
- new color[200];
- //new PMTogged[MAX_PLAYERS]; variable never used
- //new BlockedBy[MAX_PLAYERS] = 999; variable never used
- new AleaMSG[][]=
- {
- "Enter Ammunation Shop to buy weapons",
- "To see the command panel type /help",
- "Enjoy your play !"
- };
- enum pInfo
- {
- pBank,
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new PClassID[MAX_PLAYERS];
- main()
- {
- print("\n----------------------------------");
- print("GTA San Andreas Gameplay multi");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- /*AddPlayerClass(265, 2495.3455, -1687.9534, 13.5165, 269.1425, 25, 5000, 1, 0, 16, 500);
- AddPlayerClass(266, 2495.3455, -1687.9534, 13.5165, 269.1425, 27, 7000, 3, 0, 17, 500);
- AddPlayerClass(267, 2495.3455, -1687.9534, 13.5165, 269.1425, 29, 7000, 5, 0, 18, 500);
- AddPlayerClass(280, 1956.8555, 1342.7679, 15.3746, 269.1425, 31, 7000, 7, 0, 16, 500);
- AddPlayerClass(281, 1956.8555, 1342.7679, 15.3746, 269.1425, 33, 5000, 9, 0, 17, 500);
- AddPlayerClass(282, 1956.8555, 1342.7679, 15.3746, 269.1425, 26, 5000, 11, 0, 18, 500);
- AddPlayerClass(283, -2191.9365, -2256.1846, 33.3203, 269.1425, 28, 7000, 13, 0, 16, 500);
- AddPlayerClass(284, -1616.2808, 681.5245, 7.1875, 269.1425, 30, 7000, 15, 0, 17, 500);*/
- AddPlayerClass(285, -1616.2808, 681.5245, 7.1875, 269.1425, 32, 7000, 2, 0, 18, 500);
- /*AddPlayerClass(286, -1616.2808, 681.5245, 7.1875, 269.1425, 34, 5000, 4, 0, 16, 500);
- AddPlayerClass(287, -2191.9365, -2256.1846, 33.3203, 269.1425, 25, 5000, 6, 0, 17, 500);
- AddPlayerClass(288, -2191.9365, -2256.1846, 33.3203, 269.1425, 27, 5000, 8, 0, 18, 500);
- AddPlayerClass(294, 2495.3455, -1687.9534, 13.5165, 269.1425, 29, 7000, 10, 0, 16, 500);
- AddPlayerClass(295, 1956.8555, 1342.7679, 15.3746, 269.1425, 31, 7000, 12, 0, 17, 500);
- AddPlayerClass(299, -2191.9365, -2256.1846, 33.3203, 269.1425, 33, 5000, 4, 0, 18, 500);
- AddPlayerClass(228, -1616.2808, 681.5245, 7.1875, 269.1425, 26, 5000, 7, 0, 16, 500);*/
- AddStaticVehicle(596,1669.1619,-1701.8945,15.3284,272.0042,0,1);
- AddStaticVehicle(596,1668.8030,-1710.3887,15.3305,266.6911,0,1);
- AddStaticVehicle(599,1668.0221,-1695.8956,15.7959,270.9673,0,1);
- AddStaticVehicle(523,1669.7880,-1706.3821,15.1633,269.7103,0,0);
- AddStaticVehicle(523,1645.2229,-1707.8630,15.1732,89.4433,0,0);
- AddStaticVehicle(523,1645.2328,-1704.3400,15.1775,91.3480,0,0);
- AddStaticVehicle(523,1644.8949,-1700.7795,15.1573,87.7850,0,0);
- AddStaticVehicle(603,2130.9922,-1490.2648,23.6511,3.2568,18,1);
- AddStaticVehicle(587,2131.1274,-1481.9738,23.5412,357.9687,43,1);
- AddStaticVehicle(562,2131.2588,-1474.7164,23.5161,359.4084,11,1);
- AddStaticVehicle(555,2131.4539,-1467.6281,23.5030,358.0710,60,1);
- AddStaticVehicle(550,2131.4709,-1461.0061,23.7486,358.1024,62,62);
- AddStaticVehicle(545,2131.6843,-1454.0369,23.6420,358.3767,44,96);
- AddStaticVehicle(542,2131.2515,-1446.8567,23.5714,358.9708,31,93);
- AddStaticVehicle(536,2232.9543,-1750.2418,13.1282,270.7665,26,96);
- AddStaticVehicle(535,2279.0042,-1750.9775,13.1439,271.8245,55,1);
- AddStaticVehicle(529,2473.5647,-1702.3545,13.1561,180.1928,62,62);
- AddStaticVehicle(521,2607.2329,-1618.1310,2.9362,154.4742,92,3);
- AddStaticVehicleEx(446,-438.7999878,-2855.8999023,0.0000000,246.0000000,245,245,15); //Squalo
- AddStaticVehicleEx(446,-463.7999878,-2905.8999023,0.0000000,245.9948730,245,245,15); //Squalo
- AddStaticVehicleEx(446,-498.7999878,-2965.5000000,0.0000000,245.9948730,245,245,15); //Squalo
- AddStaticVehicleEx(411,-555.5000000,-3501.8000488,5.9000001,77.9974365,16,80,15); //Infernus
- AddStaticVehicleEx(411,-556.0999756,-3508.3000488,5.9000001,77.9974365,16,80,15); //Infernus
- AddStaticVehicleEx(411,-556.7000122,-3514.8000488,5.9000001,77.9974365,16,80,15); //Infernus
- AddStaticVehicleEx(541,-554.4000244,-3505.3999023,7.5999999,75.9979248,37,37,15); //Bullet
- AddStaticVehicleEx(541,-554.9000244,-3511.3999023,7.5999999,75.9979248,37,37,15); //Bullet
- AddStaticVehicleEx(522,-559.0000000,-3519.6999512,5.0000000,80.0000000,48,79,15); //NRG-500
- AddStaticVehicleEx(522,-563.7000122,-3519.1999512,5.0000000,79.9969482,48,79,15); //NRG-500
- AddStaticVehicleEx(522,-567.7000122,-3518.8000488,5.0000000,79.9969482,48,79,15); //NRG-500
- AddStaticVehicleEx(522,-554.5000000,-3520.3000488,5.0000000,79.9969482,48,79,15); //NRG-500
- AddStaticVehicleEx(522,-550.7000122,-3521.6999512,5.0000000,79.9969482,48,79,15); //NRG-500
- CreateObject(13724,1266.4000244,-2552.3999023,5.5000000,0.0000000,0.0000000,267.9986572); //object(drg_nu_ext) (1)
- CreateObject(3486,1125.5000000,-2624.0000000,8.0000000,0.0000000,0.0000000,30.0000000); //object(vegasxrexhse05) (9)
- CreateObject(3486,1099.4000244,-2638.8999023,8.0000000,0.0000000,0.0000000,29.9981689); //object(vegasxrexhse05) (10)
- CreateObject(3170,1157.9000244,-2655.3999023,1.0000000,0.0000000,0.0000000,212.0000000); //object(trailer_large3_01) (1)
- CreateObject(3170,1165.6999512,-2668.8999023,1.0000000,0.0000000,0.0000000,209.9976807); //object(trailer_large3_01) (2)
- CreateObject(3170,1173.4000244,-2682.6999512,1.0000000,0.0000000,0.0000000,209.9926758); //object(trailer_large3_01) (3)
- CreateObject(3170,1159.3000488,-2691.0000000,1.0000000,0.0000000,0.0000000,29.9926758); //object(trailer_large3_01) (4)
- CreateObject(3170,1151.8000488,-2677.8000488,1.0000000,0.0000000,0.0000000,29.9876709); //object(trailer_large3_01) (5)
- CreateObject(3170,1143.3000488,-2664.1999512,1.0000000,0.0000000,0.0000000,29.9871826); //object(trailer_large3_01) (6)
- CreateObject(3175,1152.0999756,-2697.3999023,1.0000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (1)
- CreateObject(3175,1137.0999756,-2671.1999512,1.0000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (2)
- CreateObject(3175,1129.4000244,-2684.6000977,1.0000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (3)
- CreateObject(3171,1143.4000244,-2684.1999512,1.0000000,0.0000000,0.0000000,0.0000000); //object(trailer5_01) (1)
- CreateObject(3172,1136.3000488,-2697.0000000,1.0000000,0.0000000,0.0000000,0.0000000); //object(trailer6_01) (1)
- CreateObject(3241,1125.3000488,-2670.5000000,1.0000000,0.0000000,0.0000000,160.0000000); //object(conhoos2) (8)
- CreateObject(13608,-556.3994141,-3256.2998047,17.8999996,0.0000000,0.0000000,0.0000000); //object(sumoring) (1)
- CreateObject(13609,-554.2999878,-3290.6000977,4.3000002,0.0000000,0.0000000,0.0000000); //object(supports) (1)
- CreateObject(13598,-547.2000122,-3259.8000488,33.2999992,0.0000000,0.0000000,0.0000000); //object(stand03) (1)
- CreateObject(13603,-481.6000061,-3253.1000977,2.7000000,0.0000000,0.0000000,0.0000000); //object(stad_tag) (1)
- CreateObject(14781,-527.4000244,-3210.1999512,3.5000000,0.0000000,0.0000000,0.0000000); //object(in_bxing05) (1)
- CreateObject(5244,-558.2000122,-3235.0000000,6.8000002,0.0000000,0.0000000,300.0000000); //object(lasntrk1im03) (1)
- CreateObject(3569,-532.2999878,-3297.5000000,5.3000002,0.0000000,0.0000000,0.0000000); //object(lasntrk3) (1)
- CreateObject(3569,-532.7000122,-3262.1999512,5.3000002,0.0000000,0.0000000,314.0000000); //object(lasntrk3) (2)
- CreateObject(13608,-564.7000122,-3558.6999512,17.8999996,0.0000000,0.0000000,0.0000000); //object(sumoring) (1)
- CreateObject(3279,-564.7000122,-3553.1000977,4.3000002,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
- CreateObject(1225,-614.0000000,-3557.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (1)
- CreateObject(1225,-617.0000000,-3556.6000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (2)
- CreateObject(1225,-621.2000122,-3556.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (3)
- CreateObject(1225,-625.4000244,-3555.3999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (4)
- CreateObject(1225,-628.9000244,-3554.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (5)
- CreateObject(1225,-641.5000000,-3553.1999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (6)
- CreateObject(1225,-611.0000000,-3557.3000488,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (7)
- CreateObject(1225,-618.9000244,-3556.1999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (8)
- CreateObject(1225,-623.0999756,-3555.6000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (9)
- CreateObject(1225,-626.7999878,-3555.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (10)
- CreateObject(1225,-643.2000122,-3552.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (11)
- CreateObject(1225,-562.5999756,-3603.5000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (12)
- CreateObject(1225,-562.4000244,-3605.5000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (13)
- CreateObject(1225,-562.0999756,-3608.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (14)
- CreateObject(1225,-562.0000000,-3609.1999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (15)
- CreateObject(1225,-562.2999878,-3606.6999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (16)
- CreateObject(1225,-561.9000244,-3610.6999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (17)
- CreateObject(1225,-561.2000122,-3617.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (18)
- CreateObject(1225,-561.0999756,-3619.1000977,3.8000002,0.0000000,0.0000000,0.0000000); //object(barrel4) (19)
- CreateObject(1225,-561.2999878,-3616.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (20)
- CreateObject(1225,-518.0000000,-3562.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (21)
- CreateObject(1225,-561.5999756,-3620.8000488,4.8000002,0.0000000,0.0000000,0.0000000); //object(barrel4) (22)
- CreateObject(1225,-654.5999756,-3550.5000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(barrel4) (23)
- CreateObject(1225,-645.3994141,-3552.3994141,3.4000001,0.0000000,0.0000000,0.0000000); //object(barrel4) (24)
- CreateObject(1225,-647.5996094,-3551.7998047,3.5999999,0.0000000,0.0000000,0.0000000); //object(barrel4) (25)
- CreateObject(1225,-650.0996094,-3550.2998047,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (26)
- CreateObject(1225,-652.8994141,-3550.5000000,4.0999999,0.0000000,0.0000000,0.0000000); //object(barrel4) (27)
- CreateObject(1225,-656.1992188,-3550.0996094,4.6999998,0.0000000,0.0000000,0.0000000); //object(barrel4) (28)
- CreateObject(1225,-659.0999756,-3549.1999512,5.0999999,0.0000000,0.0000000,0.0000000); //object(barrel4) (29)
- CreateObject(1225,-515.5000000,-3562.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (30)
- CreateObject(1225,-508.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (31)
- CreateObject(1225,-506.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (32)
- CreateObject(1225,-505.0000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (33)
- CreateObject(1225,-503.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (34)
- CreateObject(1225,-501.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (35)
- CreateObject(1225,-499.2999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (36)
- CreateObject(1225,-497.0000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (37)
- CreateObject(1225,-494.2999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (38)
- CreateObject(1225,-492.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (39)
- CreateObject(1225,-490.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (40)
- CreateObject(1225,-488.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (41)
- CreateObject(1225,-486.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (42)
- CreateObject(1225,-484.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (43)
- CreateObject(1225,-482.2999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (44)
- CreateObject(1225,-478.3999939,-3561.5000000,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (45)
- CreateObject(1225,-480.2998047,-3562.0996094,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (46)
- CreateObject(1225,-480.2998047,-3562.0996094,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (47)
- CreateObject(1225,-476.5000000,-3561.6999512,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (48)
- CreateObject(1225,-474.7000122,-3561.6999512,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (49)
- CreateObject(1225,-472.3999939,-3561.5000000,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (50)
- CreateObject(1225,-470.7999878,-3560.6999512,4.9000001,0.0000000,0.0000000,0.0000000); //object(barrel4) (51)
- CreateObject(8390,-359.1000061,-3258.8999023,402.2999878,0.0000000,0.0000000,0.0000000); //object(multicarpark01_lvs) (1)
- CreateObject(2395,-365.6000061,-3234.5000000,383.0000000,0.0000000,0.0000000,268.0000000); //object(cj_sports_wall) (1)
- CreateObject(2395,-368.6000061,-3234.5000000,383.0000000,0.0000000,0.0000000,0.0000000); //object(cj_sports_wall) (2)
- CreateObject(2395,-365.7999878,-3238.1000977,383.0000000,0.0000000,0.0000000,255.9949951); //object(cj_sports_wall) (3)
- CreateObject(2755,-308.1000061,-3271.0000000,392.2000122,90.0000000,0.0000000,0.0000000); //object(dojo_wall) (1)
- CreateObject(7191,-361.2000122,-3227.3999023,417.0000000,0.0000000,0.0000000,0.0000000); //object(vegasnnewfence2b) (1)
- CreateObject(7191,-349.5000000,-3226.6999512,417.0000000,0.0000000,0.0000000,0.0000000); //object(vegasnnewfence2b) (2)
- CreateObject(7191,-342.0000000,-3259.8000488,417.0000000,0.0000000,0.0000000,62.0000000); //object(vegasnnewfence2b) (3)
- CreateObject(7191,-330.1000061,-3238.8999023,417.0000000,0.0000000,0.0000000,117.9958496); //object(vegasnnewfence2b) (4)
- CreateObject(7191,-330.0996094,-3238.8994141,417.0000000,0.0000000,0.0000000,23.9931641); //object(vegasnnewfence2b) (5)
- CreateObject(7191,-327.7999878,-3233.3000488,417.0000000,0.0000000,0.0000000,335.9886475); //object(vegasnnewfence2b) (6)
- CreateObject(7191,-325.6000061,-3219.3000488,417.0000000,0.0000000,0.0000000,239.9838867); //object(vegasnnewfence2b) (7)
- CreateObject(7191,-313.2000122,-3251.0000000,417.0000000,0.0000000,0.0000000,171.9798584); //object(vegasnnewfence2b) (8)
- CreateObject(7191,-331.8999939,-3289.1999512,417.0000000,0.0000000,0.0000000,135.9744873); //object(vegasnnewfence2b) (9)
- CreateObject(7191,-359.6000061,-3272.8999023,417.0000000,0.0000000,0.0000000,181.9722900); //object(vegasnnewfence2b) (10)
- CreateObject(7191,-345.7000122,-3283.5000000,417.0000000,0.0000000,0.0000000,147.9720459); //object(vegasnnewfence2b) (11)
- CreateObject(7191,-349.1000061,-3272.1000977,417.0000000,0.0000000,0.0000000,163.9693604); //object(vegasnnewfence2b) (12)
- CreateObject(7191,-341.7000122,-3300.6000977,417.0000000,0.0000000,0.0000000,163.9654541); //object(vegasnnewfence2b) (13)
- CreateObject(7191,-360.3999939,-3315.8999023,417.0000000,0.0000000,0.0000000,99.9654541); //object(vegasnnewfence2b) (14)
- CreateObject(7191,-376.8999939,-3308.0000000,417.0000000,0.0000000,0.0000000,125.9645996); //object(vegasnnewfence2b) (15)
- CreateObject(7191,-364.8999939,-3327.8999023,417.0000000,0.0000000,0.0000000,173.9637451); //object(vegasnnewfence2b) (16)
- CreateObject(7191,-364.8994141,-3327.8994141,417.0000000,0.0000000,0.0000000,145.9630127); //object(vegasnnewfence2b) (17)
- CreateObject(7191,-364.8994141,-3327.8994141,417.0000000,0.0000000,0.0000000,73.9588623); //object(vegasnnewfence2b) (18)
- CreateObject(7191,-402.5000000,-3315.5000000,417.0000000,0.0000000,0.0000000,55.9544678); //object(vegasnnewfence2b) (19)
- CreateObject(7933,-350.2999878,-3263.3999023,417.6000061,0.0000000,0.0000000,0.0000000); //object(vegascrashbar06) (1)
- CreateObject(7933,-350.2998047,-3263.3994141,415.6000061,0.0000000,0.0000000,0.0000000); //object(vegascrashbar06) (2)
- CreateObject(7933,-350.2998047,-3263.3994141,416.6000061,0.0000000,0.0000000,0.0000000); //object(vegascrashbar06) (3)
- CreateObject(16052,-356.7999878,-3203.8000488,416.6000061,0.0000000,0.0000000,0.0000000); //object(des_ghotfence) (1)
- CreateObject(1638,-347.2000122,-3306.5000000,416.7000122,0.0000000,0.0000000,0.0000000); //object(od_pat_hut) (1)
- CreateObject(1638,-338.7999878,-3285.6000977,416.7000122,0.0000000,0.0000000,54.0000000); //object(od_pat_hut) (2)
- CreateObject(3887,-399.2999878,-3272.3999023,418.7999878,5.0000000,0.0000000,0.0000000); //object(demolish4_sfxrf) (1)
- CreateObject(3887,-391.7999878,-3271.5000000,418.7999878,355.0000000,0.0000000,180.0000000); //object(demolish4_sfxrf) (2)
- CreateObject(987,-348.7999878,-3189.1999512,383.0000000,0.0000000,0.0000000,270.0000000); //object(elecfence_bar) (1)
- CreateObject(987,-364.3999939,-3200.5000000,383.0000000,0.0000000,0.0000000,90.0000000); //object(elecfence_bar) (2)
- CreateObject(987,-348.5000000,-3199.6999512,383.0000000,0.0000000,0.0000000,182.0000000); //object(elecfence_bar) (3)
- SetTimer("SendMSG", 300000, true); //60000ms = 60 secondes = 1 minute
- 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);
- AddStaticVehicleEx(411,2335.3999000,3170.7000000,43.8000000,177.9950000,114,42,15); //Infernus
- AddStaticVehicleEx(411,2335.3999000,3170.7000000,43.8000000,177.9950000,114,42,15); //Infernus
- CreateObject(8390,2363.8000000,3105.8000000,30.3000000,0.0000000,0.0000000,180.0000000); //object(multicarpark01_lvs) (1)
- CreateObject(3437,2367.3999000,3484.7000000,44.3000000,0.0000000,38.2500000,90.0000000); //object(ballypllr01_lvs) (3)
- CreateObject(18450,2365.3000000,3214.3000000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (1)
- CreateObject(18450,2365.3000000,3293.8999000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (2)
- CreateObject(18450,2365.2998000,3373.5000000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (3)
- CreateObject(18450,2365.3000000,3453.2000000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (6)
- CreateObject(18450,2365.2998000,3453.2002000,10.6000000,0.0000000,10.0000000,270.0000000); //object(cs_roadbridge04) (8)
- CreateObject(18450,2365.3000000,3454.3000000,10.6000000,0.0000000,20.4980000,270.0000000); //object(cs_roadbridge04) (7)
- CreateObject(18450,2365.3000000,3455.8999000,10.6000000,0.0000000,39.2450000,270.0000000); //object(cs_roadbridge04) (9)
- CreateObject(18450,2365.3000000,3456.8999000,10.6000000,0.0000000,51.7430000,270.0000000); //object(cs_roadbridge04) (10)
- CreateObject(3437,2365.6006000,3484.7002000,44.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (4)
- CreateObject(3437,2367.3999000,3491.8000000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (5)
- CreateObject(3437,2367.3999000,3498.9001000,62.3000000,0.0000000,38.2480000,90.0000000); //object(ballypllr01_lvs) (6)
- CreateObject(3437,2367.3999000,3506.0002000,71.3000000,0.0000000,38.2470000,90.0000000); //object(ballypllr01_lvs) (7)
- CreateObject(3437,2367.3999000,3513.1003000,80.3000000,0.0000000,38.2460000,90.0000000); //object(ballypllr01_lvs) (8)
- CreateObject(3437,2367.3999000,3520.2004000,89.3000000,0.0000000,38.2450000,90.0000000); //object(ballypllr01_lvs) (9)
- CreateObject(3437,2367.3999000,3527.3005000,98.3000000,0.0000000,38.2430000,90.0000000); //object(ballypllr01_lvs) (10)
- CreateObject(3437,2365.6001000,3492.0000000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (11)
- CreateObject(3437,2365.6001000,3499.3000000,62.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (12)
- CreateObject(3437,2365.6001000,3506.6001000,71.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (13)
- CreateObject(3437,2365.6001000,3513.9001000,80.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (14)
- CreateObject(3437,2365.6001000,3521.2002000,89.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (15)
- CreateObject(3437,2365.6001000,3528.5002000,98.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (16)
- CreateObject(3437,2367.9004000,3484.7002000,44.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (17)
- CreateObject(3437,2367.8999000,3491.8999000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (19)
- CreateObject(3437,2367.8999000,3499.0999000,62.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (26)
- CreateObject(3437,2367.8999000,3506.2998000,71.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (20)
- CreateObject(3437,2367.8999000,3513.4998000,80.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (21)
- CreateObject(3437,2367.8999000,3520.6997000,89.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (22)
- CreateObject(3437,2367.8999000,3527.8997000,98.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (23)
- CreateObject(3437,2365.1006000,3492.0000000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (24)
- CreateObject(3437,2365.1001000,3499.3000000,62.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (25)
- CreateObject(3437,2365.1001000,3506.6001000,71.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (27)
- CreateObject(3437,2365.1001000,3513.9001000,80.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (28)
- CreateObject(3437,2365.1001000,3521.2002000,89.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (29)
- CreateObject(3437,2365.1001000,3528.5002000,98.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (30)
- CreateObject(18450,2366.3999000,3572.1001000,102.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (11)
- CreateObject(18450,2366.3999000,3652.1001000,102.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (12)
- CreateObject(18450,2366.3999000,3732.0000000,102.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (13)
- CreateObject(18450,2363.0000000,3811.3000000,95.0000000,90.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (14)
- CreateObject(18450,2369.7000000,3811.3000000,96.1000000,90.0000000,0.0000000,90.0000000); //object(cs_roadbridge04) (15)
- CreateObject(18450,2367.3999000,3886.3000000,47.4000000,0.0000000,0.0000000,268.7500000); //object(cs_roadbridge04) (16)
- CreateObject(18450,2369.2000000,3966.1001000,47.4000000,0.0000000,0.0000000,268.7480000); //object(cs_roadbridge04) (17)
- CreateObject(18450,2370.8999000,4046.1001000,47.4000000,0.0000000,0.0000000,268.7480000); //object(cs_roadbridge04) (18)
- CreateObject(8421,2374.8999000,4277.1001000,17.6000000,0.0000000,0.0000000,268.0000000); //object(pirtehtl02_lvs) (1)
- CreateObject(18450,2372.7000000,4126.0000000,47.4000000,0.0000000,0.0000000,268.7480000); //object(cs_roadbridge04) (19)
- CreateObject(8171,2373.8999000,4179.2998000,51.5000000,14.0000000,180.0000000,358.7500000); //object(vgssairportland06) (2)
- CreateObject(8171,2373.8999000,4179.2998000,51.5000000,26.9970000,180.0000000,358.7480000); //object(vgssairportland06) (3)
- CreateObject(8171,2374.0000000,4184.0000000,51.5000000,36.9930000,180.0000000,358.7420000); //object(vgssairportland06) (4)
- CreateObject(8171,2374.1001000,4188.2998000,51.5000000,44.7410000,180.0000000,358.7370000); //object(vgssairportland06) (5)
- CreateObject(8421,2374.8999000,4277.1001000,65.7000000,0.0000000,0.0000000,267.9950000); //object(pirtehtl02_lvs) (2)
- CreateObject(8421,2374.8999000,4277.1001000,87.2000000,0.0000000,0.0000000,267.9950000); //object(pirtehtl02_lvs) (4)
- CreateObject(8171,2374.2000000,4206.0000000,51.5000000,57.7360000,180.0000000,358.7370000); //object(vgssairportland06) (6)
- CreateObject(8421,2376.8999000,4338.7002000,100.1000000,0.0000000,270.0000000,268.7500000); //object(pirtehtl02_lvs) (5)
- CreateObject(8421,2377.8999000,4386.3999000,100.2000000,0.0000000,270.0000000,268.7480000); //object(pirtehtl02_lvs) (6)
- CreateObject(8421,2378.8999000,4434.0996000,100.3000000,0.0000000,270.0000000,268.7450000); //object(pirtehtl02_lvs) (7)
- CreateObject(8421,2379.8999000,4481.7993000,100.3999900,0.0000000,270.0000000,268.7430000); //object(pirtehtl02_lvs) (8)
- CreateObject(8421,2380.8999000,4529.4990000,100.4999900,0.0000000,270.0000000,268.7400000); //object(pirtehtl02_lvs) (9)
- CreateObject(8421,2381.9004000,4577.1992000,100.5999900,0.0000000,270.0000000,268.7370000); //object(pirtehtl02_lvs) (10)
- CreateObject(8421,2382.8999000,4624.8984000,100.6999900,0.0000000,270.0000000,268.7350000); //object(pirtehtl02_lvs) (11)
- CreateObject(3458,2387.5000000,4571.2998000,113.4000000,342.7500000,0.0000000,89.0000000); //object(vgncarshade1) (1)
- CreateObject(3458,2389.0000000,4571.2002000,114.0000000,335.2460000,0.0000000,88.9950000); //object(vgncarshade1) (2)
- CreateObject(1655,2200.8999000,5086.3999000,50.6000000,40.8210000,328.9090000,21.5120000); //object(waterjumpx2) (1)
- CreateObject(1655,2399.1001000,4655.6001000,126.9000000,6.6900000,319.6660000,5.6470000); //object(waterjumpx2) (2)
- CreateObject(1655,2395.8999000,4661.2002000,130.7000000,20.5250000,316.6500000,18.3150000); //object(waterjumpx2) (3)
- CreateObject(1655,2391.6001000,4665.7002000,135.8999900,29.3180000,312.4930000,28.1260000); //object(waterjumpx2) (4)
- CreateObject(1655,2387.1001000,4668.3999000,141.3999900,37.8500000,305.4850000,40.7170000); //object(waterjumpx2) (5)
- CreateObject(18450,2204.8999000,4739.5000000,23.0000000,331.5000000,0.0000000,272.0000000); //object(cs_roadbridge04) (20)
- CreateObject(18450,2215.1006000,4739.7998000,20.6000000,0.0000000,0.0000000,272.0000000); //object(cs_roadbridge04) (21)
- CreateObject(18450,2225.1001000,4739.5000000,23.0000000,331.4960000,0.0000000,92.0000000); //object(cs_roadbridge04) (22)
- CreateObject(18450,2198.6001000,4739.1001000,31.4000000,283.4960000,0.0000000,272.0000000); //object(cs_roadbridge04) (23)
- CreateObject(18450,2222.3999000,4817.5000000,23.0000000,331.4960000,0.0000000,91.9940000); //object(cs_roadbridge04) (24)
- CreateObject(18450,2219.6997000,4895.5000000,23.0000000,331.4960000,0.0000000,91.9890000); //object(cs_roadbridge04) (25)
- CreateObject(18450,2216.9995000,4973.5000000,23.0000000,331.4960000,0.0000000,91.9830000); //object(cs_roadbridge04) (26)
- CreateObject(18450,2214.2998000,5051.5000000,23.0000000,331.4960000,0.0000000,91.9720000); //object(cs_roadbridge04) (27)
- CreateObject(18450,2214.2998000,5051.5000000,23.0000000,331.8780000,349.7830000,91.1160000); //object(cs_roadbridge04) (28)
- CreateObject(18450,2214.2000000,5052.3999000,23.0000000,332.4790000,343.6010000,90.9780000); //object(cs_roadbridge04) (29)
- CreateObject(18450,2214.2000000,5053.5000000,23.0000000,334.1460000,333.1270000,91.0080000); //object(cs_roadbridge04) (31)
- CreateObject(18450,2214.0000000,5054.8999000,23.0000000,337.9830000,318.0960000,90.3760000); //object(cs_roadbridge04) (32)
- CreateObject(3437,2365.1001000,3484.8999000,44.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (4)
- CreateObject(6342,2110.8999000,5087.7002000,11.1000000,350.0000000,270.0000000,177.0000000); //object(century01_law2) (1)
- CreateObject(1655,2401.0000000,4648.5000000,124.6000000,353.6880000,319.7020000,354.6720000); //object(waterjumpx2) (1)
- CreateObject(1655,2197.8000000,5088.7002000,57.8000000,51.3140000,321.2940000,32.0190000); //object(waterjumpx2) (1)
- CreateObject(1655,2195.0000000,5089.0000000,64.5000000,60.7920000,306.7650000,49.4230000); //object(waterjumpx2) (1)
- CreateObject(18450,2060.0000000,5134.3999000,2.9000000,4.5000000,0.0000000,176.0000000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1983.6000000,5139.7998000,11.7000000,1.9460000,346.7420000,176.4540000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1856.8000000,5149.1001000,15.5000000,0.0000000,0.0000000,175.9950000); //object(cs_roadbridge04) (21)
- CreateObject(18450,2095.3999000,5082.8999000,26.2000000,299.2510000,269.5520000,177.4820000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1790.5000000,5153.7002000,43.5000000,0.0000000,313.9950000,175.9900000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1722.4000000,5158.6001000,72.1000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1642.7998000,5164.2002000,72.1000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1639.9000000,5171.3999000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1560.3000000,5177.0000000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1480.7001000,5182.6001000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (44)
- CreateObject(18450,1189.7000000,5105.0000000,468.6000100,0.0000000,284.0000000,175.9900000); //object(cs_roadbridge04) (45)
- CreateObject(18450,1321.5000000,5193.8008000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (46)
- CreateObject(18450,1321.7000000,5196.0000000,604.0000000,346.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (48)
- CreateObject(18450,1321.9000000,5197.3999000,604.4000200,332.4980000,0.0000000,175.9900000); //object(cs_roadbridge04) (49)
- CreateObject(18450,1321.9000000,5198.7998000,605.0999800,316.7460000,0.0000000,175.9900000); //object(cs_roadbridge04) (50)
- CreateObject(18450,1321.9000000,5200.0000000,606.2999900,303.2410000,0.0000000,175.9900000); //object(cs_roadbridge04) (51)
- CreateObject(18450,1321.9000000,5200.8999000,607.5999800,287.2390000,0.0000000,175.9900000); //object(cs_roadbridge04) (52)
- CreateObject(18450,1321.9000000,5201.7002000,611.4000200,270.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (53)
- CreateObject(18450,1321.9000000,5201.1001000,607.9000200,281.7450000,0.0000000,175.9900000); //object(cs_roadbridge04) (54)
- CreateObject(6342,1241.8000000,5195.3999000,603.4000200,0.0000000,0.0000000,335.2500000); //object(century01_law2) (2)
- CreateObject(6342,1192.0000000,5133.6001000,603.4000200,0.0000000,0.0000000,21.2480000); //object(century01_law2) (3)
- CreateObject(6342,1201.2000000,5058.2998000,603.4000200,0.0000000,0.0000000,67.2480000); //object(century01_law2) (4)
- CreateObject(6342,1271.3000000,5012.6001000,590.7000100,0.0000000,0.0000000,120.4970000); //object(century01_law2) (5)
- CreateObject(6342,1350.3000000,5041.5000000,575.2000100,0.0000000,0.0000000,173.9930000); //object(century01_law2) (6)
- CreateObject(6342,1373.0000000,5123.7002000,560.5000000,0.0000000,0.0000000,229.2400000); //object(century01_law2) (7)
- CreateObject(6342,1327.2000000,5188.6001000,544.2000100,0.0000000,0.0000000,275.2350000); //object(century01_law2) (8)
- CreateObject(6342,1250.4000000,5199.7998000,530.9000200,0.0000000,0.0000000,323.2350000); //object(century01_law2) (12)
- CreateObject(6342,1189.0000000,5148.7002000,516.7000100,0.0000000,0.0000000,10.4840000); //object(century01_law2) (9)
- CreateObject(18450,1401.1006000,5188.2002000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (55)
- CreateObject(18450,1194.5000000,5098.1001000,472.3999900,13.8400000,272.1100000,257.2340000); //object(cs_roadbridge04) (57)
- CreateObject(18450,1217.2000000,5103.0000000,395.7999900,0.0000000,297.2470000,175.9900000); //object(cs_roadbridge04) (58)
- CreateObject(18450,1260.4000000,5100.0000000,331.1000100,0.0000000,310.2460000,175.9900000); //object(cs_roadbridge04) (59)
- CreateObject(18450,1219.8000000,5096.5000000,397.0000000,25.1940000,274.0310000,256.5890000); //object(cs_roadbridge04) (60)
- CreateObject(18450,1317.0000000,5096.0000000,280.1000100,0.0000000,325.9930000,175.9900000); //object(cs_roadbridge04) (61)
- CreateObject(18450,1353.4000000,5062.7002000,257.8999900,0.0000000,0.0000000,266.0000000); //object(cs_roadbridge04) (62)
- CreateObject(18450,1359.8000000,5062.5000000,263.7000100,74.0000000,0.0000000,265.9950000); //object(cs_roadbridge04) (63)
- CreateObject(18450,1263.5000000,5093.1001000,332.7999900,40.9380000,277.4400000,254.7060000); //object(cs_roadbridge04) (64)
- CreateObject(18450,1347.8000000,4982.8999000,257.8999900,0.0000000,0.0000000,265.9950000); //object(cs_roadbridge04) (65)
- CreateObject(18450,1342.2001000,4903.0996000,257.8999900,0.0000000,0.0000000,265.9910000); //object(cs_roadbridge04) (66)
- CreateObject(18450,1336.6001000,4823.2993000,257.8999900,0.0000000,0.0000000,265.9860000); //object(cs_roadbridge04) (67)
- CreateObject(18450,1331.0000000,4743.4990000,257.8999900,0.0000000,0.0000000,265.9790000); //object(cs_roadbridge04) (68)
- CreateObject(3458,1341.7000000,4813.3999000,259.2999900,90.0000000,355.7950000,261.2050000); //object(vgncarshade1) (3)
- CreateObject(3458,1336.0000000,4774.2998000,259.2999900,90.0000000,357.0740000,269.1680000); //object(vgncarshade1) (4)
- CreateObject(3458,1333.5000000,4734.8999000,259.2999900,90.0000000,357.0720000,269.1650000); //object(vgncarshade1) (5)
- CreateObject(3458,1332.8000000,4723.6001000,259.2999900,90.0000000,357.0720000,269.1650000); //object(vgncarshade1) (6)
- CreateObject(3458,1331.7000000,4721.7002000,251.5000000,0.0000000,23.0720000,89.1650000); //object(vgncarshade1) (7)
- CreateObject(18450,1319.8000000,4550.2998000,241.8999900,0.0000000,0.0000000,265.9790000); //object(cs_roadbridge04) (69)
- CreateObject(8419,1298.8000000,4291.7998000,44.8000000,0.0000000,0.0000000,0.0000000); //object(vgsbldng01_lvs) (1)
- CreateObject(8419,1344.9000000,4291.5000000,44.8000000,0.0000000,0.0000000,0.0000000); //object(vgsbldng01_lvs) (2)
- CreateObject(8419,1253.0000000,4291.8999000,44.8000000,0.0000000,0.0000000,0.0000000); //object(vgsbldng01_lvs) (3)
- CreateObject(8419,1184.6000000,4224.0000000,44.8000000,0.0000000,0.0000000,270.0000000); //object(vgsbldng01_lvs) (4)
- CreateObject(8419,1096.2000000,4176.8999000,44.8000000,0.0000000,0.0000000,270.0000000); //object(vgsbldng01_lvs) (5)
- CreateObject(18450,1012.2000000,4175.7998000,56.2000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (70)
- CreateObject(18450,1012.2002000,4175.7998000,56.2000000,0.0000000,13.7500000,0.0000000); //object(cs_roadbridge04) (71)
- CreateObject(18450,1011.0000000,4175.7998000,56.2000000,0.0000000,25.9990000,0.0000000); //object(cs_roadbridge04) (72)
- CreateObject(18450,1010.3000000,4175.7998000,56.2000000,0.0000000,33.2490000,0.0000000); //object(cs_roadbridge04) (73)
- CreateObject(18450,1009.3000000,4175.7998000,56.2000000,0.0000000,41.9950000,0.0000000); //object(cs_roadbridge04) (74)
- CreateObject(18450,1007.7000000,4175.7998000,56.2000000,0.0000000,55.2400000,0.0000000); //object(cs_roadbridge04) (75)
- CreateObject(18450,1005.7000000,4175.7998000,56.2000000,0.0000000,68.9890000,0.0000000); //object(cs_roadbridge04) (76)
- CreateObject(18450,1003.8000000,4175.7998000,56.2000000,0.0000000,79.9890000,2.0000000); //object(cs_roadbridge04) (77)
- CreateObject(18450,989.5999800,4175.2998000,65.5000000,0.0000000,104.4860000,2.0000000); //object(cs_roadbridge04) (78)
- CreateObject(18450,995.7999900,4175.5000000,64.0000000,0.0000000,92.7350000,2.0000000); //object(cs_roadbridge04) (79)
- CreateObject(18450,1054.4000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (81)
- CreateObject(8392,1081.4000000,4175.7002000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (1)
- CreateObject(8392,1167.9000000,4209.2998000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (2)
- CreateObject(8392,1199.7000000,4231.3999000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (3)
- CreateObject(8392,1258.3000000,4256.5000000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (4)
- CreateObject(8392,1259.2000000,4300.5000000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (6)
- CreateObject(8392,1289.7000000,4322.5000000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (7)
- CreateObject(18450,1134.3000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (82)
- CreateObject(18450,1214.2001000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (83)
- CreateObject(18450,1294.1001000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (84)
- CreateObject(18450,1374.0000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (85)
- CreateObject(18450,1374.0000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (99)
- CreateObject(18450,1379.0900000,4175.7002000,103.0202300,0.0000000,-7.2000000,0.0000000); //object(cs_roadbridge04) (86)
- CreateObject(18450,1384.0996000,4175.7002000,103.9758800,0.0000000,-14.4000000,0.0000000); //object(cs_roadbridge04) (87)
- CreateObject(18450,1388.9500000,4175.7002000,105.5518600,0.0000000,-21.6000000,0.0000000); //object(cs_roadbridge04) (88)
- CreateObject(18450,1393.5646000,4175.7002000,107.7233400,0.0000000,-28.8000000,0.0000000); //object(cs_roadbridge04) (89)
- CreateObject(18450,1397.8707000,4175.7002000,110.4560500,0.0000000,-36.0000000,0.0000000); //object(cs_roadbridge04) (90)
- CreateObject(18450,1401.8003000,4175.7002000,113.7069200,0.0000000,-43.2000000,0.0000000); //object(cs_roadbridge04) (91)
- CreateObject(8419,1657.0000000,4166.0000000,1.3000000,0.0000000,0.0000000,88.0000000); //object(vgsbldng01_lvs) (6)
- CreateObject(8392,1290.0000000,4278.4004000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (8)
- CreateObject(8392,1671.0000000,4243.2002000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (9)
- CreateObject(8392,1689.3000000,4243.2002000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (10)
- CreateObject(8392,1649.2000000,4243.2002000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (11)
- CreateObject(8392,1626.9000000,4242.8999000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (12)
- CreateObject(8392,1752.8000000,4179.0000000,23.3000000,0.0000000,0.0000000,358.0000000); //object(ballys02_lvs) (13)
- CreateObject(8392,1752.1000000,4157.7998000,23.3000000,0.0000000,0.0000000,357.9950000); //object(ballys02_lvs) (14)
- CreateObject(8392,1751.3000000,4137.3999000,23.3000000,0.0000000,0.0000000,357.9950000); //object(ballys02_lvs) (15)
- CreateObject(8392,1688.8000000,4086.7000000,23.3000000,0.0000000,0.0000000,270.0000000); //object(ballys02_lvs) (16)
- CreateObject(8392,1667.2000000,4086.7000000,23.3000000,0.0000000,0.0000000,269.9950000); //object(ballys02_lvs) (17)
- CreateObject(8392,1646.7000000,4086.7000000,23.3000000,0.0000000,0.0000000,269.9950000); //object(ballys02_lvs) (18)
- CreateObject(8392,1626.3000000,4086.8000000,23.3000000,0.0000000,0.0000000,269.9950000); //object(ballys02_lvs) (19)
- CreateObject(18450,1603.6000000,5166.8999000,72.1000000,0.0000000,270.0000000,175.9900000); //object(cs_roadbridge04) (21)
- CreateObject(18450,1819.1000000,5151.6001000,18.4000000,0.0000000,332.2450000,175.9900000); //object(cs_roadbridge04) (21)
- SetTimer("teles", 500, true);
- return 1;
- }
- forward teles(playerid);
- public teles(playerid)
- {
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerInRangeOfPoint(i, 2,1608.9000244141,5167,73.400001525879))
- {
- new VehicleID,Float:X,Float:Y,Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- VehicleID = GetPlayerVehicleID(playerid);
- SetVehiclePos(VehicleID,X,Y,Z);
- SetVehicleZAngle(VehicleID,0);
- GameTextForPlayer(playerid, "~r~Etap2", 3000, 1);
- SetPlayerPos(playerid,1671.1999511719,5168.7001953125,607);
- if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
- {
- new vehid = GetPlayerVehicleID(playerid);
- SetVehiclePos(vehid,1671.1999511719,5168.7001953125,607);
- PutPlayerInVehicle(playerid,vehid,0);
- }
- }
- }
- return 1;
- }
- dcmd_hitman(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You have to be an rcon adminitrator!");
- if(IsGameOn ==1) return SendClientMessage(playerid,red,"The minigame is already on!");
- StartHitman();
- #pragma unused params
- return true;
- }
- dcmd_endhitman(playerid, params[])
- {
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You have to be an rcon adminitrator!");
- if(!IsGameOn) return SendClientMessage(playerid,red,"The minigame is already off!");
- EndHitman();
- SendClientMessage(playerid,yellow,"You have successfully ended the hitman minigame.");
- GameTextForAll("Minigame Over",5000,1);
- #pragma unused params
- return true;
- }
- StartHitman()
- {
- new id = GetRandomID();
- GameTextForAll("~w~Kill the ~r~red~w~ player!",5000,1);
- format(lolz,256,"%s has been identified as a very dangerous terrorist",PlayerName(id));
- SendClientMessageToAll(red,lolz);
- SendClientMessageToAll(red,"and is Wanted Dead or Alive!");
- format(lolz,256,"Whoever can kill %s will win $%d.",PlayerName(id),CASH_PRIZE);
- SendClientMessageToAll(red,lolz);
- for(new i =0; i <MAX_PLAYERS; i++)
- {
- color[i] = GetPlayerColor(i);
- SetPlayerColor(i,white);
- GivePlayerWeapon(i,WEAPON_ID,WEAPON_AMMO);
- }
- ResetPlayerWeapons(id);
- SetPlayerArmour(id,100);
- SetPlayerHealth(id,100);
- SetPlayerColor(id,red);
- PlayerHitman[id] = true;
- SetTimerEx("VehicleTimerHealth",30*1000,false,"i",id);
- IsGameOn = 1;
- }
- EndHitman()
- {
- KillTimer(0);
- IsGameOn = 0;
- for(new i =0; i <MAX_PLAYERS; i++)
- {
- SetPlayerColor(i,color[i]);
- PlayerHitman[i] = false;
- }
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public SendMSG()
- {
- new randMSG=
- random(sizeof(AleaMSG));//On calcule par rapport a la taille de la variable AleaMSG qui est 3
- SendClientMessageToAll(0xFFFFFFAA, AleaMSG[randMSG]); //Remplacez "COULEUR" PAR LA COULEUR DE VOTRE CHOIX
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- PClassID[playerid] = classid;
- SetPlayerPos(playerid, 1544.7887,-1675.4630,13.5591);
- SetPlayerFacingAngle(playerid,90.0);
- SetPlayerCameraPos(playerid, 1541.5293,-1675.4012,13.5527);
- SetPlayerCameraLookAt(playerid, 1544.7887,-1675.4630,13.5591);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- new pname[128]; // This get's the length of the player name
- new file[128]; // This get's the lenght of the file
- GetPlayerName(playerid, pname, sizeof(pname)); // This get's the player name with the lenght of the player name
- format(file, sizeof(file), savefolder,pname); // This describe's where to save and how to save it
- if(!dini_Exists(file))
- {
- // If the file exist
- dini_Create(file); // Create the file
- dini_IntSet(file, "Score", 0); // Set's "Score"
- dini_IntSet(file, "Money", 0); // Set's "Money"
- dini_IntSet(file, "Kills", Killz[playerid]); // Set's "Kills"
- dini_IntSet(file, "Deaths", Deathz[playerid]); // Set's "Deaths"
- dini_IntSet(file, "Skin", 0); // Set's Skin
- SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
- SetPlayerMoney(playerid, dini_Int(file, "Money")); // This describes where to load the money
- SetPlayerSkin(playerid, dini_Int(file, "Skin")); // This describes where to load the skin
- // and at last this set's the value which were on the file
- }
- else
- {
- SetPlayerScore(playerid, dini_Int(file, "Score"));
- SetPlayerMoney(playerid, dini_Int(file, "Money"));
- SetPlayerSkin(playerid, dini_Int(file, "Skin"));
- // the same thing
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new pname[128]; // The name length
- new file[128]; // The file length
- GetPlayerName(playerid, pname, sizeof(pname)); // This get's the player name with the name length
- format(file, sizeof(file), savefolder,pname); // Formatting file
- if(!dini_Exists(file)) { // If the file exist
- }
- else { // if not
- dini_IntSet(file, "Score", GetPlayerScore(playerid)); // This Get the Score
- dini_IntSet(file, "Money", GetPlayerMoney(playerid)); // This Get the cash
- dini_IntSet(file, "Kills", Killz[playerid]); // This get the kills
- dini_IntSet(file, "Deaths", Deathz[playerid]); // This get the Deaths
- dini_IntSet(file, "Skin", GetPlayerSkin(playerid)); // This get the skin
- }
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public VehicleTimerHealth(playerid)
- {
- if(!IsPlayerInAnyVehicle(playerid)) return false;
- if(IsGameOn)
- {
- SetVehicleHealth((GetPlayerVehicleID(playerid)),100);
- SendClientMessage(playerid,red,"Burn Baby Burn!");
- SetTimerEx("VehicleTimerHealth",30*1000,false,"i",playerid);
- return false;
- }
- KillTimer(0);
- return true;
- }
- public OnPlayerDeath(playerid,killerid,reason)
- {
- Killz[killerid] ++; // The killer value will be increased
- Deathz[playerid] ++; // The death value will be increased
- GivePlayerMoney(killerid, 1000);
- SendClientMessage(killerid, -1, "You have been awarded $1000 for the kill.");
- if(PlayerHitman[playerid])
- {
- if(killerid == INVALID_PLAYER_ID)
- {
- format(lolz,256,"%s has killed himself, the minigame is over!",PlayerName(playerid));
- SendClientMessageToAll(red,lolz);
- EndHitman();
- return false;
- }
- format(lolz,256,"%s has killed the Terrorist, %s! The Minigame is over!!",PlayerName(killerid),PlayerName(playerid));
- SendClientMessageToAll(red,lolz);
- EndHitman();
- GivePlayerMoney(killerid,CASH_PRIZE);
- }
- return true;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(hitman,6,cmdtext);
- dcmd(endhitman,9,cmdtext);
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- return 1;
- }
- //911 Call
- CMD:911(playerid, params[])
- {
- //911 system
- if(isnull(params)) return SendClientMessage(playerid, COLOR_ROYALBLUE, "USAGE: 911 message and location!");
- new sendername[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- SendClientMessage(playerid, COLOR_ROYALBLUE, "*DISPATCHER: Ok, Thanks! We'll get a unit to you, please remain at your location and wait.");
- SendClientMessage(playerid, COLOR_LIGHTSKYBLUE, "They hang up...");
- for(new i=0;i<MAX_PLAYERS;i++) {
- if(GetPlayerSkin(i) == 285 || GetPlayerSkin(i) == 282 || GetPlayerSkin(i) == 281 || GetPlayerSkin(i) == 283 || GetPlayerSkin(i) == 288 ||GetPlayerSkin(i) == 278 || GetPlayerSkin(i) == 275 || GetPlayerSkin(i) == 279 || GetPlayerSkin(i) == 277 || GetPlayerSkin(i) == 274 || GetPlayerSkin(i) == 276) {
- SendClientMessage(i, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
- SendClientMessage(i, COLOR_ROYALBLUE, "DPS AUTOMATED DISPATCH");
- SendClientMessage(i, COLOR_GREY, "911 Call");
- format(string, sizeof(string), "NAME: %s (ID: %i)", sendername, playerid);
- SendClientMessage(i, COLOR_GREY, string);
- format(string, sizeof(string), "CALL INFO: %s", params);
- SendClientMessage(i, COLOR_GREY, string);
- SendClientMessage(i, COLOR_GREY, "Suggested action: Get to the scene for a verify of the call.");
- SendClientMessage(i, COLOR_GREY, "Call code: Unknown.");
- SendClientMessage(i, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
- SendClientMessage(i, COLOR_GOLD, "[INFO]A marker has been put on your GPS. Enter it to remove it.");
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerCheckpoint(i, X, Y, Z, 5.0);
- }
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- if(PClassID[playerid] == 285)
- {
- if(IsPlayerAdmin(playerid))
- {
- return 1;
- }
- else
- {
- return 0;
- }
- }
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- CMD:commands(playerid, params[])
- {
- ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Welcome to the command panel!", "/enterstore - (Access the store to buy a new skin)\n/pm - (To personnal message another player)\n/EventHelp - (To see all events commands)", "Select","Close");
- return 1;
- }
- public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
- {
- if(dialogid == dialogID)
- {
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Please type Your question.","Next","Close");
- if(strlen(inputtext) > 64) return ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Question is too long.\nPlease type Your question.","Next","Close");
- format(vSys_Question,64,"%s",inputtext);
- ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type first question answer option.","Next","Close");
- return 1;
- }
- }
- if(dialogid == dialogID+1)
- {
- if(!response) return ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Please type Your question.","Next","Close");
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type first question answer option.","Next","Close");
- if(strlen(inputtext) > 10) return ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Answer is too long.\nType first question answer option.","Next","Close");
- format(vSys_Answer1,10,"%s",inputtext);
- ShowPlayerDialog(playerid,dialogID+2,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type second answer of the question.","Next","Close");
- return 1;
- }
- }
- if(dialogid == dialogID+2)
- {
- if(!response) return ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type first question answer option.","Next","Close");
- if(response)
- {
- if(!strlen(inputtext)) return ShowPlayerDialog(playerid,dialogID+2,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type second answer of the question.","Next","Close");
- if(strlen(inputtext) > 10) return ShowPlayerDialog(playerid,dialogID+2,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Answer is too long.\nType second answer of the question.","Next","Close");
- format(vSys_Answer2,10,"%s",inputtext);
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- NeedAnswers++;
- ShowPlayerDialog(i,dialogID+3,DIALOG_STYLE_MSGBOX,"Vote System - created by Martin_M",vSys_Question,vSys_Answer1,vSys_Answer2);
- }
- }
- return 1;
- }
- }
- if(dialogid == dialogID+3)
- {
- new msg[128];
- if(!response)
- {
- AnswersForAnswer2++;
- NeedAnswers--;
- format(msg,128,"%s choose %s",PlayerName(playerid),vSys_Answer2);
- for(new i=0;i<MAX_PLAYERS;i++){
- if(IsPlayerConnected(i)){
- if(IsPlayerAdmin(i)){
- SendClientMessage(i,AnswerMessageColor,msg);
- }}}
- if(NeedAnswers <= 0)
- {
- format(msg,128,"Vote completed. %s (%d) - %s (%d)",vSys_Answer1,AnswersForAnswer1,vSys_Answer2,AnswersForAnswer2);
- for(new i=0;i<MAX_PLAYERS;i++){
- if(IsPlayerConnected(i)){
- if(IsPlayerAdmin(i)){
- SendClientMessage(i,AnswerMessageColor,msg);
- }}}
- AnswersForAnswer1 = 0;
- AnswersForAnswer2 = 0;
- }
- return 1;
- }
- if(response)
- {
- AnswersForAnswer1++;
- NeedAnswers--;
- format(msg,128,"%s choose %s",PlayerName(playerid),vSys_Answer1);
- for(new i=0;i<MAX_PLAYERS;i++){
- if(IsPlayerConnected(i)){
- if(IsPlayerAdmin(i)){
- SendClientMessage(i,AnswerMessageColor,msg);
- }}}
- if(NeedAnswers <= 0)
- {
- format(msg,128,"Vote completed. %s (%d) - %s (%d)",vSys_Answer1,AnswersForAnswer1,vSys_Answer2,AnswersForAnswer2);
- for(new i=0;i<MAX_PLAYERS;i++){
- if(IsPlayerConnected(i)){
- if(IsPlayerAdmin(i)){
- SendClientMessage(i,AnswerMessageColor,msg);
- }}}
- AnswersForAnswer1 = 0;
- AnswersForAnswer2 = 0;
- }
- return 1;
- }
- }
- return 1;
- }
- stock GetRandomID() //thanks to Boylett
- {
- new bool:connected[MAX_PLAYERS] = false, amount = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(IsPlayerConnected(i))
- {
- connected[i] = true;
- amount++;
- }
- if(amount == 0) return -1;
- new rand = random(amount), done = 0;
- for(new i = 0; i < MAX_PLAYERS; i++)
- if(connected[i])
- {
- if(done == rand) return i;
- done++;
- }
- return -1;
- }
- stock PlayerName(playerid)
- {
- new name[255];
- GetPlayerName(playerid, name, 255);
- return name;
- }
- 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;
- }
- COMMAND:vote(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- if(AnswersForAnswer1 != 0 || AnswersForAnswer2 != 0) return SendClientMessage(playerid,AnswerMessageColor,"You can't start new voting right now.");
- ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Please type Your question.","Next","Close");
- return 1;
- }
- COMMAND:endvote(playerid,params[])
- {
- if(!IsPlayerAdmin(playerid)) return 0;
- if(AnswersForAnswer1 == 0 || AnswersForAnswer2 == 0) return SendClientMessage(playerid,AnswerMessageColor,"There is no vote created.");
- new msg[128];
- format(msg,128,"Vote completed. %s (%d) - %s (%d)",vSys_Answer1,AnswersForAnswer1,vSys_Answer2,AnswersForAnswer2);
- for(new i=0;i<MAX_PLAYERS;i++){
- if(IsPlayerConnected(i)){
- if(IsPlayerAdmin(i)){
- SendClientMessage(i,AnswerMessageColor,msg);
- }}}
- AnswersForAnswer1 = 0;
- AnswersForAnswer2 = 0;
- NeedAnswers = 0;
- SendClientMessage(playerid,AnswerMessageColor,"Vote ended.");
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- NeedAnswers++;
- ShowPlayerDialog(i,dialogID+4,DIALOG_STYLE_MSGBOX,"Vote System - created by Martin_M","Vote ended."," "," ");
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement