Advertisement
Guest User

Silent

a guest
Aug 26th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 65.29 KB | None | 0 0
  1.  
  2.  
  3. #include <a_samp>
  4. #include zcmd
  5. #include sscanf2
  6. #include <Dini>      // This include is use for saving data's
  7. #include <Dutils>   // This include is used for some important function
  8. #include <Dudb>   //  This include is used for hashing password
  9. #pragma unused ret_memcpy // This avoid the ret_memcpy warning
  10. new Killz[MAX_PLAYERS];       // We have used this variable because to save the kills of the player
  11. new Deathz[MAX_PLAYERS];  // Same on here
  12.  
  13. #define savefolder "/save/%s.ini" // This defines the file name and folder
  14. #define CASH_PRIZE 500000 //This is the prize that the player will win when killing the terrirost!
  15. #define WEAPON_ID 34 //This is the weapon id that all players will recived to help kill him!
  16. #define WEAPON_AMMO 400 ///this is the ammo!
  17.  
  18. #define COLOR_YELLOW 0xFFFF00AA
  19. #define COLOR_ORANGE 0xFF9900AA
  20. #define COLOR_GREY 0xAFAFAFAA
  21. #define COLOR_GRAD1 0xB4B5B7FF
  22. #define COLOR_RED 0xAA3333AA
  23. #define COLOR_GREEN 0x33AA33AA
  24. #define COLOR_BLUE 0x2641FEAA
  25. #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
  26. #define yellow 0xFFFF00AA
  27. #define green 0x33FF33AA
  28. #define red 0xFF0000AA
  29. #define white 0xFFFFFFAA
  30. #define pink 0xCCFF00FFAA
  31. #define blue 0x00FFFFAA
  32. #define grey 0xAFAFAFAA
  33. #define darkred 0x660000AA
  34. #define orange 0xFF8040FF
  35. #define green2 0x33AA33AA
  36. #define red2 0xAA3333AA
  37. #define COLOR_GOLD 0xB8860BAA
  38. #define COLOR_LIGHTSKYBLUE 0x87CEFAFF
  39. #define COLOR_ROYALBLUE 0x4169E1FF
  40.  
  41. #define dialogID 19940125
  42. #define AnswerMessageColor 0xFFFFFFFF
  43. new vSys_Question[64],vSys_Answer1[10],vSys_Answer2[10];
  44. new AnswersForAnswer1,AnswersForAnswer2,NeedAnswers;
  45.  
  46. forward VehicleTimerHealth(playerid);
  47. forward SendMSG();
  48. new IsGameOn;
  49. new PlayerHitman[200];
  50. new lolz[256];
  51. new color[200];
  52.  
  53. //new PMTogged[MAX_PLAYERS];            variable never used
  54. //new BlockedBy[MAX_PLAYERS] = 999;     variable never used
  55.  
  56. new AleaMSG[][]=
  57. {
  58.     "Enter Ammunation Shop to buy weapons",
  59.     "To see the command panel type /help",
  60.     "Enjoy your play !"
  61. };
  62.  
  63.  
  64. enum pInfo
  65. {
  66.     pBank,
  67. }
  68. new PlayerInfo[MAX_PLAYERS][pInfo];
  69. new PClassID[MAX_PLAYERS];
  70.  
  71. main()
  72. {
  73.     print("\n----------------------------------");
  74.     print("GTA San Andreas Gameplay multi");
  75.     print("----------------------------------\n");
  76. }
  77.  
  78. public OnGameModeInit()
  79. {
  80.     // Don't use these lines if it's a filterscript
  81.     /*AddPlayerClass(265, 2495.3455, -1687.9534, 13.5165, 269.1425, 25, 5000, 1, 0, 16, 500);
  82.     AddPlayerClass(266, 2495.3455, -1687.9534, 13.5165, 269.1425, 27, 7000, 3, 0, 17, 500);
  83.     AddPlayerClass(267, 2495.3455, -1687.9534, 13.5165, 269.1425, 29, 7000, 5, 0, 18, 500);
  84.     AddPlayerClass(280, 1956.8555, 1342.7679, 15.3746, 269.1425, 31, 7000, 7, 0, 16, 500);
  85.     AddPlayerClass(281, 1956.8555, 1342.7679, 15.3746, 269.1425, 33, 5000, 9, 0, 17, 500);
  86.     AddPlayerClass(282, 1956.8555, 1342.7679, 15.3746, 269.1425, 26, 5000, 11, 0, 18, 500);
  87.     AddPlayerClass(283, -2191.9365, -2256.1846, 33.3203, 269.1425, 28, 7000, 13, 0, 16, 500);
  88.     AddPlayerClass(284, -1616.2808, 681.5245, 7.1875, 269.1425, 30, 7000, 15, 0, 17, 500);*/
  89.     AddPlayerClass(285, -1616.2808, 681.5245, 7.1875, 269.1425, 32, 7000, 2, 0, 18, 500);
  90.     /*AddPlayerClass(286, -1616.2808, 681.5245, 7.1875, 269.1425, 34, 5000, 4, 0, 16, 500);
  91.     AddPlayerClass(287, -2191.9365, -2256.1846, 33.3203, 269.1425, 25, 5000, 6, 0, 17, 500);
  92.     AddPlayerClass(288, -2191.9365, -2256.1846, 33.3203, 269.1425, 27, 5000, 8, 0, 18, 500);
  93.     AddPlayerClass(294, 2495.3455, -1687.9534, 13.5165, 269.1425, 29, 7000, 10, 0, 16, 500);
  94.     AddPlayerClass(295, 1956.8555, 1342.7679, 15.3746, 269.1425, 31, 7000, 12, 0, 17, 500);
  95.     AddPlayerClass(299, -2191.9365, -2256.1846, 33.3203, 269.1425, 33, 5000, 4, 0, 18, 500);
  96.     AddPlayerClass(228, -1616.2808, 681.5245, 7.1875, 269.1425, 26, 5000, 7, 0, 16, 500);*/
  97.     AddStaticVehicle(596,1669.1619,-1701.8945,15.3284,272.0042,0,1);
  98.     AddStaticVehicle(596,1668.8030,-1710.3887,15.3305,266.6911,0,1);
  99.     AddStaticVehicle(599,1668.0221,-1695.8956,15.7959,270.9673,0,1);
  100.     AddStaticVehicle(523,1669.7880,-1706.3821,15.1633,269.7103,0,0);
  101.     AddStaticVehicle(523,1645.2229,-1707.8630,15.1732,89.4433,0,0);
  102.     AddStaticVehicle(523,1645.2328,-1704.3400,15.1775,91.3480,0,0);
  103.     AddStaticVehicle(523,1644.8949,-1700.7795,15.1573,87.7850,0,0);
  104.     AddStaticVehicle(603,2130.9922,-1490.2648,23.6511,3.2568,18,1);
  105.     AddStaticVehicle(587,2131.1274,-1481.9738,23.5412,357.9687,43,1);
  106.     AddStaticVehicle(562,2131.2588,-1474.7164,23.5161,359.4084,11,1);
  107.     AddStaticVehicle(555,2131.4539,-1467.6281,23.5030,358.0710,60,1);
  108.     AddStaticVehicle(550,2131.4709,-1461.0061,23.7486,358.1024,62,62);
  109.     AddStaticVehicle(545,2131.6843,-1454.0369,23.6420,358.3767,44,96);
  110.     AddStaticVehicle(542,2131.2515,-1446.8567,23.5714,358.9708,31,93);
  111.     AddStaticVehicle(536,2232.9543,-1750.2418,13.1282,270.7665,26,96);
  112.     AddStaticVehicle(535,2279.0042,-1750.9775,13.1439,271.8245,55,1);
  113.     AddStaticVehicle(529,2473.5647,-1702.3545,13.1561,180.1928,62,62);
  114.     AddStaticVehicle(521,2607.2329,-1618.1310,2.9362,154.4742,92,3);
  115.     AddStaticVehicleEx(446,-438.7999878,-2855.8999023,0.0000000,246.0000000,245,245,15); //Squalo
  116.     AddStaticVehicleEx(446,-463.7999878,-2905.8999023,0.0000000,245.9948730,245,245,15); //Squalo
  117.     AddStaticVehicleEx(446,-498.7999878,-2965.5000000,0.0000000,245.9948730,245,245,15); //Squalo
  118.     AddStaticVehicleEx(411,-555.5000000,-3501.8000488,5.9000001,77.9974365,16,80,15); //Infernus
  119.     AddStaticVehicleEx(411,-556.0999756,-3508.3000488,5.9000001,77.9974365,16,80,15); //Infernus
  120.     AddStaticVehicleEx(411,-556.7000122,-3514.8000488,5.9000001,77.9974365,16,80,15); //Infernus
  121.     AddStaticVehicleEx(541,-554.4000244,-3505.3999023,7.5999999,75.9979248,37,37,15); //Bullet
  122.     AddStaticVehicleEx(541,-554.9000244,-3511.3999023,7.5999999,75.9979248,37,37,15); //Bullet
  123.     AddStaticVehicleEx(522,-559.0000000,-3519.6999512,5.0000000,80.0000000,48,79,15); //NRG-500
  124.     AddStaticVehicleEx(522,-563.7000122,-3519.1999512,5.0000000,79.9969482,48,79,15); //NRG-500
  125.     AddStaticVehicleEx(522,-567.7000122,-3518.8000488,5.0000000,79.9969482,48,79,15); //NRG-500
  126.     AddStaticVehicleEx(522,-554.5000000,-3520.3000488,5.0000000,79.9969482,48,79,15); //NRG-500
  127.     AddStaticVehicleEx(522,-550.7000122,-3521.6999512,5.0000000,79.9969482,48,79,15); //NRG-500
  128.     CreateObject(13724,1266.4000244,-2552.3999023,5.5000000,0.0000000,0.0000000,267.9986572); //object(drg_nu_ext) (1)
  129.     CreateObject(3486,1125.5000000,-2624.0000000,8.0000000,0.0000000,0.0000000,30.0000000); //object(vegasxrexhse05) (9)
  130.     CreateObject(3486,1099.4000244,-2638.8999023,8.0000000,0.0000000,0.0000000,29.9981689); //object(vegasxrexhse05) (10)
  131.     CreateObject(3170,1157.9000244,-2655.3999023,1.0000000,0.0000000,0.0000000,212.0000000); //object(trailer_large3_01) (1)
  132.     CreateObject(3170,1165.6999512,-2668.8999023,1.0000000,0.0000000,0.0000000,209.9976807); //object(trailer_large3_01) (2)
  133.     CreateObject(3170,1173.4000244,-2682.6999512,1.0000000,0.0000000,0.0000000,209.9926758); //object(trailer_large3_01) (3)
  134.     CreateObject(3170,1159.3000488,-2691.0000000,1.0000000,0.0000000,0.0000000,29.9926758); //object(trailer_large3_01) (4)
  135.     CreateObject(3170,1151.8000488,-2677.8000488,1.0000000,0.0000000,0.0000000,29.9876709); //object(trailer_large3_01) (5)
  136.     CreateObject(3170,1143.3000488,-2664.1999512,1.0000000,0.0000000,0.0000000,29.9871826); //object(trailer_large3_01) (6)
  137.     CreateObject(3175,1152.0999756,-2697.3999023,1.0000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (1)
  138.     CreateObject(3175,1137.0999756,-2671.1999512,1.0000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (2)
  139.     CreateObject(3175,1129.4000244,-2684.6000977,1.0000000,0.0000000,0.0000000,0.0000000); //object(sm_airstrm_med_) (3)
  140.     CreateObject(3171,1143.4000244,-2684.1999512,1.0000000,0.0000000,0.0000000,0.0000000); //object(trailer5_01) (1)
  141.     CreateObject(3172,1136.3000488,-2697.0000000,1.0000000,0.0000000,0.0000000,0.0000000); //object(trailer6_01) (1)
  142.     CreateObject(3241,1125.3000488,-2670.5000000,1.0000000,0.0000000,0.0000000,160.0000000); //object(conhoos2) (8)
  143.     CreateObject(13608,-556.3994141,-3256.2998047,17.8999996,0.0000000,0.0000000,0.0000000); //object(sumoring) (1)
  144.     CreateObject(13609,-554.2999878,-3290.6000977,4.3000002,0.0000000,0.0000000,0.0000000); //object(supports) (1)
  145.     CreateObject(13598,-547.2000122,-3259.8000488,33.2999992,0.0000000,0.0000000,0.0000000); //object(stand03) (1)
  146.     CreateObject(13603,-481.6000061,-3253.1000977,2.7000000,0.0000000,0.0000000,0.0000000); //object(stad_tag) (1)
  147.     CreateObject(14781,-527.4000244,-3210.1999512,3.5000000,0.0000000,0.0000000,0.0000000); //object(in_bxing05) (1)
  148.     CreateObject(5244,-558.2000122,-3235.0000000,6.8000002,0.0000000,0.0000000,300.0000000); //object(lasntrk1im03) (1)
  149.     CreateObject(3569,-532.2999878,-3297.5000000,5.3000002,0.0000000,0.0000000,0.0000000); //object(lasntrk3) (1)
  150.     CreateObject(3569,-532.7000122,-3262.1999512,5.3000002,0.0000000,0.0000000,314.0000000); //object(lasntrk3) (2)
  151.     CreateObject(13608,-564.7000122,-3558.6999512,17.8999996,0.0000000,0.0000000,0.0000000); //object(sumoring) (1)
  152.     CreateObject(3279,-564.7000122,-3553.1000977,4.3000002,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
  153.     CreateObject(1225,-614.0000000,-3557.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (1)
  154.     CreateObject(1225,-617.0000000,-3556.6000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (2)
  155.     CreateObject(1225,-621.2000122,-3556.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (3)
  156.     CreateObject(1225,-625.4000244,-3555.3999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (4)
  157.     CreateObject(1225,-628.9000244,-3554.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (5)
  158.     CreateObject(1225,-641.5000000,-3553.1999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (6)
  159.     CreateObject(1225,-611.0000000,-3557.3000488,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (7)
  160.     CreateObject(1225,-618.9000244,-3556.1999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (8)
  161.     CreateObject(1225,-623.0999756,-3555.6000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (9)
  162.     CreateObject(1225,-626.7999878,-3555.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (10)
  163.     CreateObject(1225,-643.2000122,-3552.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (11)
  164.     CreateObject(1225,-562.5999756,-3603.5000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (12)
  165.     CreateObject(1225,-562.4000244,-3605.5000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (13)
  166.     CreateObject(1225,-562.0999756,-3608.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (14)
  167.     CreateObject(1225,-562.0000000,-3609.1999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (15)
  168.     CreateObject(1225,-562.2999878,-3606.6999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (16)
  169.     CreateObject(1225,-561.9000244,-3610.6999512,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (17)
  170.     CreateObject(1225,-561.2000122,-3617.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (18)
  171.     CreateObject(1225,-561.0999756,-3619.1000977,3.8000002,0.0000000,0.0000000,0.0000000); //object(barrel4) (19)
  172.     CreateObject(1225,-561.2999878,-3616.8999023,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (20)
  173.     CreateObject(1225,-518.0000000,-3562.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (21)
  174.     CreateObject(1225,-561.5999756,-3620.8000488,4.8000002,0.0000000,0.0000000,0.0000000); //object(barrel4) (22)
  175.     CreateObject(1225,-654.5999756,-3550.5000000,4.4000001,0.0000000,0.0000000,0.0000000); //object(barrel4) (23)
  176.     CreateObject(1225,-645.3994141,-3552.3994141,3.4000001,0.0000000,0.0000000,0.0000000); //object(barrel4) (24)
  177.     CreateObject(1225,-647.5996094,-3551.7998047,3.5999999,0.0000000,0.0000000,0.0000000); //object(barrel4) (25)
  178.     CreateObject(1225,-650.0996094,-3550.2998047,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (26)
  179.     CreateObject(1225,-652.8994141,-3550.5000000,4.0999999,0.0000000,0.0000000,0.0000000); //object(barrel4) (27)
  180.     CreateObject(1225,-656.1992188,-3550.0996094,4.6999998,0.0000000,0.0000000,0.0000000); //object(barrel4) (28)
  181.     CreateObject(1225,-659.0999756,-3549.1999512,5.0999999,0.0000000,0.0000000,0.0000000); //object(barrel4) (29)
  182.     CreateObject(1225,-515.5000000,-3562.0000000,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (30)
  183.     CreateObject(1225,-508.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (31)
  184.     CreateObject(1225,-506.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (32)
  185.     CreateObject(1225,-505.0000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (33)
  186.     CreateObject(1225,-503.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (34)
  187.     CreateObject(1225,-501.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (35)
  188.     CreateObject(1225,-499.2999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (36)
  189.     CreateObject(1225,-497.0000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (37)
  190.     CreateObject(1225,-494.2999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (38)
  191.     CreateObject(1225,-492.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (39)
  192.     CreateObject(1225,-490.5000000,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (40)
  193.     CreateObject(1225,-488.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (41)
  194.     CreateObject(1225,-486.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (42)
  195.     CreateObject(1225,-484.7999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (43)
  196.     CreateObject(1225,-482.2999878,-3562.1000977,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (44)
  197.     CreateObject(1225,-478.3999939,-3561.5000000,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (45)
  198.     CreateObject(1225,-480.2998047,-3562.0996094,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (46)
  199.     CreateObject(1225,-480.2998047,-3562.0996094,2.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (47)
  200.     CreateObject(1225,-476.5000000,-3561.6999512,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (48)
  201.     CreateObject(1225,-474.7000122,-3561.6999512,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (49)
  202.     CreateObject(1225,-472.3999939,-3561.5000000,3.8000000,0.0000000,0.0000000,0.0000000); //object(barrel4) (50)
  203.     CreateObject(1225,-470.7999878,-3560.6999512,4.9000001,0.0000000,0.0000000,0.0000000); //object(barrel4) (51)
  204.     CreateObject(8390,-359.1000061,-3258.8999023,402.2999878,0.0000000,0.0000000,0.0000000); //object(multicarpark01_lvs) (1)
  205.     CreateObject(2395,-365.6000061,-3234.5000000,383.0000000,0.0000000,0.0000000,268.0000000); //object(cj_sports_wall) (1)
  206.     CreateObject(2395,-368.6000061,-3234.5000000,383.0000000,0.0000000,0.0000000,0.0000000); //object(cj_sports_wall) (2)
  207.     CreateObject(2395,-365.7999878,-3238.1000977,383.0000000,0.0000000,0.0000000,255.9949951); //object(cj_sports_wall) (3)
  208.     CreateObject(2755,-308.1000061,-3271.0000000,392.2000122,90.0000000,0.0000000,0.0000000); //object(dojo_wall) (1)
  209.     CreateObject(7191,-361.2000122,-3227.3999023,417.0000000,0.0000000,0.0000000,0.0000000); //object(vegasnnewfence2b) (1)
  210.     CreateObject(7191,-349.5000000,-3226.6999512,417.0000000,0.0000000,0.0000000,0.0000000); //object(vegasnnewfence2b) (2)
  211.     CreateObject(7191,-342.0000000,-3259.8000488,417.0000000,0.0000000,0.0000000,62.0000000); //object(vegasnnewfence2b) (3)
  212.     CreateObject(7191,-330.1000061,-3238.8999023,417.0000000,0.0000000,0.0000000,117.9958496); //object(vegasnnewfence2b) (4)
  213.     CreateObject(7191,-330.0996094,-3238.8994141,417.0000000,0.0000000,0.0000000,23.9931641); //object(vegasnnewfence2b) (5)
  214.     CreateObject(7191,-327.7999878,-3233.3000488,417.0000000,0.0000000,0.0000000,335.9886475); //object(vegasnnewfence2b) (6)
  215.     CreateObject(7191,-325.6000061,-3219.3000488,417.0000000,0.0000000,0.0000000,239.9838867); //object(vegasnnewfence2b) (7)
  216.     CreateObject(7191,-313.2000122,-3251.0000000,417.0000000,0.0000000,0.0000000,171.9798584); //object(vegasnnewfence2b) (8)
  217.     CreateObject(7191,-331.8999939,-3289.1999512,417.0000000,0.0000000,0.0000000,135.9744873); //object(vegasnnewfence2b) (9)
  218.     CreateObject(7191,-359.6000061,-3272.8999023,417.0000000,0.0000000,0.0000000,181.9722900); //object(vegasnnewfence2b) (10)
  219.     CreateObject(7191,-345.7000122,-3283.5000000,417.0000000,0.0000000,0.0000000,147.9720459); //object(vegasnnewfence2b) (11)
  220.     CreateObject(7191,-349.1000061,-3272.1000977,417.0000000,0.0000000,0.0000000,163.9693604); //object(vegasnnewfence2b) (12)
  221.     CreateObject(7191,-341.7000122,-3300.6000977,417.0000000,0.0000000,0.0000000,163.9654541); //object(vegasnnewfence2b) (13)
  222.     CreateObject(7191,-360.3999939,-3315.8999023,417.0000000,0.0000000,0.0000000,99.9654541); //object(vegasnnewfence2b) (14)
  223.     CreateObject(7191,-376.8999939,-3308.0000000,417.0000000,0.0000000,0.0000000,125.9645996); //object(vegasnnewfence2b) (15)
  224.     CreateObject(7191,-364.8999939,-3327.8999023,417.0000000,0.0000000,0.0000000,173.9637451); //object(vegasnnewfence2b) (16)
  225.     CreateObject(7191,-364.8994141,-3327.8994141,417.0000000,0.0000000,0.0000000,145.9630127); //object(vegasnnewfence2b) (17)
  226.     CreateObject(7191,-364.8994141,-3327.8994141,417.0000000,0.0000000,0.0000000,73.9588623); //object(vegasnnewfence2b) (18)
  227.     CreateObject(7191,-402.5000000,-3315.5000000,417.0000000,0.0000000,0.0000000,55.9544678); //object(vegasnnewfence2b) (19)
  228.     CreateObject(7933,-350.2999878,-3263.3999023,417.6000061,0.0000000,0.0000000,0.0000000); //object(vegascrashbar06) (1)
  229.     CreateObject(7933,-350.2998047,-3263.3994141,415.6000061,0.0000000,0.0000000,0.0000000); //object(vegascrashbar06) (2)
  230.     CreateObject(7933,-350.2998047,-3263.3994141,416.6000061,0.0000000,0.0000000,0.0000000); //object(vegascrashbar06) (3)
  231.     CreateObject(16052,-356.7999878,-3203.8000488,416.6000061,0.0000000,0.0000000,0.0000000); //object(des_ghotfence) (1)
  232.     CreateObject(1638,-347.2000122,-3306.5000000,416.7000122,0.0000000,0.0000000,0.0000000); //object(od_pat_hut) (1)
  233.     CreateObject(1638,-338.7999878,-3285.6000977,416.7000122,0.0000000,0.0000000,54.0000000); //object(od_pat_hut) (2)
  234.     CreateObject(3887,-399.2999878,-3272.3999023,418.7999878,5.0000000,0.0000000,0.0000000); //object(demolish4_sfxrf) (1)
  235.     CreateObject(3887,-391.7999878,-3271.5000000,418.7999878,355.0000000,0.0000000,180.0000000); //object(demolish4_sfxrf) (2)
  236.     CreateObject(987,-348.7999878,-3189.1999512,383.0000000,0.0000000,0.0000000,270.0000000); //object(elecfence_bar) (1)
  237.     CreateObject(987,-364.3999939,-3200.5000000,383.0000000,0.0000000,0.0000000,90.0000000); //object(elecfence_bar) (2)
  238.     CreateObject(987,-348.5000000,-3199.6999512,383.0000000,0.0000000,0.0000000,182.0000000); //object(elecfence_bar) (3)
  239.     SetTimer("SendMSG", 300000, true); //60000ms = 60 secondes = 1 minute
  240.     CreateObject(13007,2491.5000000,-1668.9000200,-0.6000000,0.0000000,0.0000000,0.0000000); //object(sw_bankbits) (1)
  241.     CreateObject(18030,2504.6001000,-1674.5000000,0.0000000,0.0000000,0.0000000,0.0000000); //object(gap) (1)
  242.     CreateObject(2946,2484.3501000,-1660.8000500,-2.4000000,0.0000000,0.0000000,270.0000000); //object(cr_door_03) (1)
  243.     CreateObject(2946,2484.3999000,-1660.8000500,-2.4000000,0.0000000,0.0000000,90.0000000); //object(cr_door_03) (2)
  244.     CreateObject(1506,2518.8000500,-1677.0000000,-2.2000000,0.0000000,0.0000000,0.0000000); //object(gen_doorext08) (1)
  245.     CreateObject(1491,2518.8000500,-1680.9000200,-2.2000000,0.0000000,0.0000000,0.0000000); //object(gen_doorint01) (1)
  246.     CreateObject(1550,2517.3999000,-1683.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (2)
  247.     CreateObject(1550,2517.3999000,-1681.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (4)
  248.     CreateObject(1550,2517.3999000,-1681.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (5)
  249.     CreateObject(1550,2517.3999000,-1682.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (7)
  250.     CreateObject(1550,2517.3999000,-1683.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (8)
  251.     CreateObject(1550,2517.8000500,-1682.1999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (10)
  252.     CreateObject(1550,2517.8999000,-1681.6999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (11)
  253.     CreateObject(1550,2517.3999000,-1682.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (12)
  254.     CreateObject(1550,2517.8999000,-1681.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (13)
  255.     CreateObject(1550,2517.8000500,-1682.6999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (15)
  256.     CreateObject(1550,2518.3999000,-1681.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (16)
  257.     CreateObject(1550,2517.8000500,-1683.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (17)
  258.     CreateObject(1550,2517.8000500,-1683.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (18)
  259.     CreateObject(1550,2518.3999000,-1681.6999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (19)
  260.     CreateObject(1550,2518.3000500,-1682.1999500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (20)
  261.     CreateObject(1550,2518.3000500,-1682.8000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (21)
  262.     CreateObject(1550,2518.3000500,-1683.3000500,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (22)
  263.     CreateObject(1550,2518.3000500,-1683.9000200,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (23)
  264.     CreateObject(2332,2520.6001000,-1681.5000000,-1.7000000,0.0000000,0.0000000,270.0000000); //object(kev_safe) (1)
  265.     CreateObject(1829,2520.3000500,-1683.5999800,-1.7000000,0.0000000,0.0000000,271.0000000); //object(man_safenew) (1)
  266.     CreateObject(1550,2520.6001000,-1682.5999800,-1.8000000,0.0000000,0.0000000,0.0000000); //object(cj_money_bag) (24)
  267.     CreateObject(1274,2519.5000000,-1681.0999800,0.9000000,0.0000000,0.0000000,0.0000000); //object(bigdollar) (1)
  268.     CreateObject(2190,2488.8999000,-1662.3000500,-1.4000000,0.0000000,0.0000000,0.0000000); //object(pc_1) (1)
  269.     CreateObject(2777,2489.8000500,-1662.3000500,-1.9000000,0.0000000,0.0000000,0.0000000); //object(lee_stripchair1) (1)
  270.     CreateObject(1491,2501.0000000,-1672.5000000,-2.8000000,0.0000000,0.0000000,90.0000000); //object(gen_doorint01) (2)
  271.     CreateObject(1649,2521.1499000,-1678.8000500,-0.5000000,0.0000000,0.0000000,270.0000000); //object(wglasssmash) (1)
  272.     CreateObject(1622,2521.1001000,-1677.5999800,1.2000000,0.0000000,0.0000000,0.0000000); //object(nt_securecam2_01) (1)
  273.     CreateObject(1505,2498.8000500,-1688.0000000,-2.3000000,0.0000000,0.0000000,0.0000000); //object(gen_doorext07) (1)
  274.     CreateObject(7090,1455.0000000,-1019.9000200,38.8000000,0.0000000,0.0000000,270.0000000); //object(vegasflag1) (1)
  275.     CreateObject(7090,1461.3000500,-1020.4000200,38.8000000,0.0000000,0.0000000,269.9950000); //object(vegasflag1) (2)
  276.     CreateObject(7090,1467.5000000,-1020.0000000,38.8000000,0.0000000,0.0000000,269.9950000); //object(vegasflag1) (3)
  277.     CreateObject(2942,1464.5999800,-1490.6999500,13.2000000,0.0000000,0.0000000,0.0000000); //object(kmb_atm1) (1)
  278.     CreateObject(2942,1455.5000000,-1755.1999500,13.2000000,0.0000000,0.0000000,180.0000000); //object(kmb_atm1) (2)
  279.     CreateObject(2942,1546.4000200,-1714.4000200,13.2000000,0.0000000,0.0000000,0.0000000); //object(kmb_atm1) (3)
  280.  
  281.     Create3DTextLabel("Main Bank\nEntering Point\n(( /enter to enter in ))", COLOR_RED, 1457.5433, -1010.5931, 26.8438, 20.0, 0, 0);
  282.     Create3DTextLabel("Main Bank\nExiting Point\n(( /exit to exit in )", COLOR_RED, 2484.4021, -1662.1301, -1.3672, 20.0, 0, 0);
  283.  
  284.     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);
  285.     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);
  286.     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);
  287.  
  288.     CreatePickup(1318, 0, 1457.5433, -1010.5931, 26.8438, 0);
  289.     CreatePickup(1318, 0, 2484.4021, -1662.1301, -1.3672, 0);
  290.  
  291.     AddStaticVehicleEx(411,2335.3999000,3170.7000000,43.8000000,177.9950000,114,42,15); //Infernus
  292.     AddStaticVehicleEx(411,2335.3999000,3170.7000000,43.8000000,177.9950000,114,42,15); //Infernus
  293.     CreateObject(8390,2363.8000000,3105.8000000,30.3000000,0.0000000,0.0000000,180.0000000); //object(multicarpark01_lvs) (1)
  294.     CreateObject(3437,2367.3999000,3484.7000000,44.3000000,0.0000000,38.2500000,90.0000000); //object(ballypllr01_lvs) (3)
  295.     CreateObject(18450,2365.3000000,3214.3000000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (1)
  296.     CreateObject(18450,2365.3000000,3293.8999000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (2)
  297.     CreateObject(18450,2365.2998000,3373.5000000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (3)
  298.     CreateObject(18450,2365.3000000,3453.2000000,10.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (6)
  299.     CreateObject(18450,2365.2998000,3453.2002000,10.6000000,0.0000000,10.0000000,270.0000000); //object(cs_roadbridge04) (8)
  300.     CreateObject(18450,2365.3000000,3454.3000000,10.6000000,0.0000000,20.4980000,270.0000000); //object(cs_roadbridge04) (7)
  301.     CreateObject(18450,2365.3000000,3455.8999000,10.6000000,0.0000000,39.2450000,270.0000000); //object(cs_roadbridge04) (9)
  302.     CreateObject(18450,2365.3000000,3456.8999000,10.6000000,0.0000000,51.7430000,270.0000000); //object(cs_roadbridge04) (10)
  303.     CreateObject(3437,2365.6006000,3484.7002000,44.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (4)
  304.     CreateObject(3437,2367.3999000,3491.8000000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (5)
  305.     CreateObject(3437,2367.3999000,3498.9001000,62.3000000,0.0000000,38.2480000,90.0000000); //object(ballypllr01_lvs) (6)
  306.     CreateObject(3437,2367.3999000,3506.0002000,71.3000000,0.0000000,38.2470000,90.0000000); //object(ballypllr01_lvs) (7)
  307.     CreateObject(3437,2367.3999000,3513.1003000,80.3000000,0.0000000,38.2460000,90.0000000); //object(ballypllr01_lvs) (8)
  308.     CreateObject(3437,2367.3999000,3520.2004000,89.3000000,0.0000000,38.2450000,90.0000000); //object(ballypllr01_lvs) (9)
  309.     CreateObject(3437,2367.3999000,3527.3005000,98.3000000,0.0000000,38.2430000,90.0000000); //object(ballypllr01_lvs) (10)
  310.     CreateObject(3437,2365.6001000,3492.0000000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (11)
  311.     CreateObject(3437,2365.6001000,3499.3000000,62.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (12)
  312.     CreateObject(3437,2365.6001000,3506.6001000,71.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (13)
  313.     CreateObject(3437,2365.6001000,3513.9001000,80.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (14)
  314.     CreateObject(3437,2365.6001000,3521.2002000,89.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (15)
  315.     CreateObject(3437,2365.6001000,3528.5002000,98.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (16)
  316.     CreateObject(3437,2367.9004000,3484.7002000,44.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (17)
  317.     CreateObject(3437,2367.8999000,3491.8999000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (19)
  318.     CreateObject(3437,2367.8999000,3499.0999000,62.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (26)
  319.     CreateObject(3437,2367.8999000,3506.2998000,71.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (20)
  320.     CreateObject(3437,2367.8999000,3513.4998000,80.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (21)
  321.     CreateObject(3437,2367.8999000,3520.6997000,89.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (22)
  322.     CreateObject(3437,2367.8999000,3527.8997000,98.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (23)
  323.     CreateObject(3437,2365.1006000,3492.0000000,53.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (24)
  324.     CreateObject(3437,2365.1001000,3499.3000000,62.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (25)
  325.     CreateObject(3437,2365.1001000,3506.6001000,71.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (27)
  326.     CreateObject(3437,2365.1001000,3513.9001000,80.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (28)
  327.     CreateObject(3437,2365.1001000,3521.2002000,89.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (29)
  328.     CreateObject(3437,2365.1001000,3528.5002000,98.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (30)
  329.     CreateObject(18450,2366.3999000,3572.1001000,102.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (11)
  330.     CreateObject(18450,2366.3999000,3652.1001000,102.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (12)
  331.     CreateObject(18450,2366.3999000,3732.0000000,102.6000000,0.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (13)
  332.     CreateObject(18450,2363.0000000,3811.3000000,95.0000000,90.0000000,0.0000000,270.0000000); //object(cs_roadbridge04) (14)
  333.     CreateObject(18450,2369.7000000,3811.3000000,96.1000000,90.0000000,0.0000000,90.0000000); //object(cs_roadbridge04) (15)
  334.     CreateObject(18450,2367.3999000,3886.3000000,47.4000000,0.0000000,0.0000000,268.7500000); //object(cs_roadbridge04) (16)
  335.     CreateObject(18450,2369.2000000,3966.1001000,47.4000000,0.0000000,0.0000000,268.7480000); //object(cs_roadbridge04) (17)
  336.     CreateObject(18450,2370.8999000,4046.1001000,47.4000000,0.0000000,0.0000000,268.7480000); //object(cs_roadbridge04) (18)
  337.     CreateObject(8421,2374.8999000,4277.1001000,17.6000000,0.0000000,0.0000000,268.0000000); //object(pirtehtl02_lvs) (1)
  338.     CreateObject(18450,2372.7000000,4126.0000000,47.4000000,0.0000000,0.0000000,268.7480000); //object(cs_roadbridge04) (19)
  339.     CreateObject(8171,2373.8999000,4179.2998000,51.5000000,14.0000000,180.0000000,358.7500000); //object(vgssairportland06) (2)
  340.     CreateObject(8171,2373.8999000,4179.2998000,51.5000000,26.9970000,180.0000000,358.7480000); //object(vgssairportland06) (3)
  341.     CreateObject(8171,2374.0000000,4184.0000000,51.5000000,36.9930000,180.0000000,358.7420000); //object(vgssairportland06) (4)
  342.     CreateObject(8171,2374.1001000,4188.2998000,51.5000000,44.7410000,180.0000000,358.7370000); //object(vgssairportland06) (5)
  343.     CreateObject(8421,2374.8999000,4277.1001000,65.7000000,0.0000000,0.0000000,267.9950000); //object(pirtehtl02_lvs) (2)
  344.     CreateObject(8421,2374.8999000,4277.1001000,87.2000000,0.0000000,0.0000000,267.9950000); //object(pirtehtl02_lvs) (4)
  345.     CreateObject(8171,2374.2000000,4206.0000000,51.5000000,57.7360000,180.0000000,358.7370000); //object(vgssairportland06) (6)
  346.     CreateObject(8421,2376.8999000,4338.7002000,100.1000000,0.0000000,270.0000000,268.7500000); //object(pirtehtl02_lvs) (5)
  347.     CreateObject(8421,2377.8999000,4386.3999000,100.2000000,0.0000000,270.0000000,268.7480000); //object(pirtehtl02_lvs) (6)
  348.     CreateObject(8421,2378.8999000,4434.0996000,100.3000000,0.0000000,270.0000000,268.7450000); //object(pirtehtl02_lvs) (7)
  349.     CreateObject(8421,2379.8999000,4481.7993000,100.3999900,0.0000000,270.0000000,268.7430000); //object(pirtehtl02_lvs) (8)
  350.     CreateObject(8421,2380.8999000,4529.4990000,100.4999900,0.0000000,270.0000000,268.7400000); //object(pirtehtl02_lvs) (9)
  351.     CreateObject(8421,2381.9004000,4577.1992000,100.5999900,0.0000000,270.0000000,268.7370000); //object(pirtehtl02_lvs) (10)
  352.     CreateObject(8421,2382.8999000,4624.8984000,100.6999900,0.0000000,270.0000000,268.7350000); //object(pirtehtl02_lvs) (11)
  353.     CreateObject(3458,2387.5000000,4571.2998000,113.4000000,342.7500000,0.0000000,89.0000000); //object(vgncarshade1) (1)
  354.     CreateObject(3458,2389.0000000,4571.2002000,114.0000000,335.2460000,0.0000000,88.9950000); //object(vgncarshade1) (2)
  355.     CreateObject(1655,2200.8999000,5086.3999000,50.6000000,40.8210000,328.9090000,21.5120000); //object(waterjumpx2) (1)
  356.     CreateObject(1655,2399.1001000,4655.6001000,126.9000000,6.6900000,319.6660000,5.6470000); //object(waterjumpx2) (2)
  357.     CreateObject(1655,2395.8999000,4661.2002000,130.7000000,20.5250000,316.6500000,18.3150000); //object(waterjumpx2) (3)
  358.     CreateObject(1655,2391.6001000,4665.7002000,135.8999900,29.3180000,312.4930000,28.1260000); //object(waterjumpx2) (4)
  359.     CreateObject(1655,2387.1001000,4668.3999000,141.3999900,37.8500000,305.4850000,40.7170000); //object(waterjumpx2) (5)
  360.     CreateObject(18450,2204.8999000,4739.5000000,23.0000000,331.5000000,0.0000000,272.0000000); //object(cs_roadbridge04) (20)
  361.     CreateObject(18450,2215.1006000,4739.7998000,20.6000000,0.0000000,0.0000000,272.0000000); //object(cs_roadbridge04) (21)
  362.     CreateObject(18450,2225.1001000,4739.5000000,23.0000000,331.4960000,0.0000000,92.0000000); //object(cs_roadbridge04) (22)
  363.     CreateObject(18450,2198.6001000,4739.1001000,31.4000000,283.4960000,0.0000000,272.0000000); //object(cs_roadbridge04) (23)
  364.     CreateObject(18450,2222.3999000,4817.5000000,23.0000000,331.4960000,0.0000000,91.9940000); //object(cs_roadbridge04) (24)
  365.     CreateObject(18450,2219.6997000,4895.5000000,23.0000000,331.4960000,0.0000000,91.9890000); //object(cs_roadbridge04) (25)
  366.     CreateObject(18450,2216.9995000,4973.5000000,23.0000000,331.4960000,0.0000000,91.9830000); //object(cs_roadbridge04) (26)
  367.     CreateObject(18450,2214.2998000,5051.5000000,23.0000000,331.4960000,0.0000000,91.9720000); //object(cs_roadbridge04) (27)
  368.     CreateObject(18450,2214.2998000,5051.5000000,23.0000000,331.8780000,349.7830000,91.1160000); //object(cs_roadbridge04) (28)
  369.     CreateObject(18450,2214.2000000,5052.3999000,23.0000000,332.4790000,343.6010000,90.9780000); //object(cs_roadbridge04) (29)
  370.     CreateObject(18450,2214.2000000,5053.5000000,23.0000000,334.1460000,333.1270000,91.0080000); //object(cs_roadbridge04) (31)
  371.     CreateObject(18450,2214.0000000,5054.8999000,23.0000000,337.9830000,318.0960000,90.3760000); //object(cs_roadbridge04) (32)
  372.     CreateObject(3437,2365.1001000,3484.8999000,44.3000000,0.0000000,38.2490000,90.0000000); //object(ballypllr01_lvs) (4)
  373.     CreateObject(6342,2110.8999000,5087.7002000,11.1000000,350.0000000,270.0000000,177.0000000); //object(century01_law2) (1)
  374.     CreateObject(1655,2401.0000000,4648.5000000,124.6000000,353.6880000,319.7020000,354.6720000); //object(waterjumpx2) (1)
  375.     CreateObject(1655,2197.8000000,5088.7002000,57.8000000,51.3140000,321.2940000,32.0190000); //object(waterjumpx2) (1)
  376.     CreateObject(1655,2195.0000000,5089.0000000,64.5000000,60.7920000,306.7650000,49.4230000); //object(waterjumpx2) (1)
  377.     CreateObject(18450,2060.0000000,5134.3999000,2.9000000,4.5000000,0.0000000,176.0000000); //object(cs_roadbridge04) (21)
  378.     CreateObject(18450,1983.6000000,5139.7998000,11.7000000,1.9460000,346.7420000,176.4540000); //object(cs_roadbridge04) (21)
  379.     CreateObject(18450,1856.8000000,5149.1001000,15.5000000,0.0000000,0.0000000,175.9950000); //object(cs_roadbridge04) (21)
  380.     CreateObject(18450,2095.3999000,5082.8999000,26.2000000,299.2510000,269.5520000,177.4820000); //object(cs_roadbridge04) (21)
  381.     CreateObject(18450,1790.5000000,5153.7002000,43.5000000,0.0000000,313.9950000,175.9900000); //object(cs_roadbridge04) (21)
  382.     CreateObject(18450,1722.4000000,5158.6001000,72.1000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
  383.     CreateObject(18450,1642.7998000,5164.2002000,72.1000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
  384.     CreateObject(18450,1639.9000000,5171.3999000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
  385.     CreateObject(18450,1560.3000000,5177.0000000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (21)
  386.     CreateObject(18450,1480.7001000,5182.6001000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (44)
  387.     CreateObject(18450,1189.7000000,5105.0000000,468.6000100,0.0000000,284.0000000,175.9900000); //object(cs_roadbridge04) (45)
  388.     CreateObject(18450,1321.5000000,5193.8008000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (46)
  389.     CreateObject(18450,1321.7000000,5196.0000000,604.0000000,346.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (48)
  390.     CreateObject(18450,1321.9000000,5197.3999000,604.4000200,332.4980000,0.0000000,175.9900000); //object(cs_roadbridge04) (49)
  391.     CreateObject(18450,1321.9000000,5198.7998000,605.0999800,316.7460000,0.0000000,175.9900000); //object(cs_roadbridge04) (50)
  392.     CreateObject(18450,1321.9000000,5200.0000000,606.2999900,303.2410000,0.0000000,175.9900000); //object(cs_roadbridge04) (51)
  393.     CreateObject(18450,1321.9000000,5200.8999000,607.5999800,287.2390000,0.0000000,175.9900000); //object(cs_roadbridge04) (52)
  394.     CreateObject(18450,1321.9000000,5201.7002000,611.4000200,270.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (53)
  395.     CreateObject(18450,1321.9000000,5201.1001000,607.9000200,281.7450000,0.0000000,175.9900000); //object(cs_roadbridge04) (54)
  396.     CreateObject(6342,1241.8000000,5195.3999000,603.4000200,0.0000000,0.0000000,335.2500000); //object(century01_law2) (2)
  397.     CreateObject(6342,1192.0000000,5133.6001000,603.4000200,0.0000000,0.0000000,21.2480000); //object(century01_law2) (3)
  398.     CreateObject(6342,1201.2000000,5058.2998000,603.4000200,0.0000000,0.0000000,67.2480000); //object(century01_law2) (4)
  399.     CreateObject(6342,1271.3000000,5012.6001000,590.7000100,0.0000000,0.0000000,120.4970000); //object(century01_law2) (5)
  400.     CreateObject(6342,1350.3000000,5041.5000000,575.2000100,0.0000000,0.0000000,173.9930000); //object(century01_law2) (6)
  401.     CreateObject(6342,1373.0000000,5123.7002000,560.5000000,0.0000000,0.0000000,229.2400000); //object(century01_law2) (7)
  402.     CreateObject(6342,1327.2000000,5188.6001000,544.2000100,0.0000000,0.0000000,275.2350000); //object(century01_law2) (8)
  403.     CreateObject(6342,1250.4000000,5199.7998000,530.9000200,0.0000000,0.0000000,323.2350000); //object(century01_law2) (12)
  404.     CreateObject(6342,1189.0000000,5148.7002000,516.7000100,0.0000000,0.0000000,10.4840000); //object(century01_law2) (9)
  405.     CreateObject(18450,1401.1006000,5188.2002000,604.0000000,0.0000000,0.0000000,175.9900000); //object(cs_roadbridge04) (55)
  406.     CreateObject(18450,1194.5000000,5098.1001000,472.3999900,13.8400000,272.1100000,257.2340000); //object(cs_roadbridge04) (57)
  407.     CreateObject(18450,1217.2000000,5103.0000000,395.7999900,0.0000000,297.2470000,175.9900000); //object(cs_roadbridge04) (58)
  408.     CreateObject(18450,1260.4000000,5100.0000000,331.1000100,0.0000000,310.2460000,175.9900000); //object(cs_roadbridge04) (59)
  409.     CreateObject(18450,1219.8000000,5096.5000000,397.0000000,25.1940000,274.0310000,256.5890000); //object(cs_roadbridge04) (60)
  410.     CreateObject(18450,1317.0000000,5096.0000000,280.1000100,0.0000000,325.9930000,175.9900000); //object(cs_roadbridge04) (61)
  411.     CreateObject(18450,1353.4000000,5062.7002000,257.8999900,0.0000000,0.0000000,266.0000000); //object(cs_roadbridge04) (62)
  412.     CreateObject(18450,1359.8000000,5062.5000000,263.7000100,74.0000000,0.0000000,265.9950000); //object(cs_roadbridge04) (63)
  413.     CreateObject(18450,1263.5000000,5093.1001000,332.7999900,40.9380000,277.4400000,254.7060000); //object(cs_roadbridge04) (64)
  414.     CreateObject(18450,1347.8000000,4982.8999000,257.8999900,0.0000000,0.0000000,265.9950000); //object(cs_roadbridge04) (65)
  415.     CreateObject(18450,1342.2001000,4903.0996000,257.8999900,0.0000000,0.0000000,265.9910000); //object(cs_roadbridge04) (66)
  416.     CreateObject(18450,1336.6001000,4823.2993000,257.8999900,0.0000000,0.0000000,265.9860000); //object(cs_roadbridge04) (67)
  417.     CreateObject(18450,1331.0000000,4743.4990000,257.8999900,0.0000000,0.0000000,265.9790000); //object(cs_roadbridge04) (68)
  418.     CreateObject(3458,1341.7000000,4813.3999000,259.2999900,90.0000000,355.7950000,261.2050000); //object(vgncarshade1) (3)
  419.     CreateObject(3458,1336.0000000,4774.2998000,259.2999900,90.0000000,357.0740000,269.1680000); //object(vgncarshade1) (4)
  420.     CreateObject(3458,1333.5000000,4734.8999000,259.2999900,90.0000000,357.0720000,269.1650000); //object(vgncarshade1) (5)
  421.     CreateObject(3458,1332.8000000,4723.6001000,259.2999900,90.0000000,357.0720000,269.1650000); //object(vgncarshade1) (6)
  422.     CreateObject(3458,1331.7000000,4721.7002000,251.5000000,0.0000000,23.0720000,89.1650000); //object(vgncarshade1) (7)
  423.     CreateObject(18450,1319.8000000,4550.2998000,241.8999900,0.0000000,0.0000000,265.9790000); //object(cs_roadbridge04) (69)
  424.     CreateObject(8419,1298.8000000,4291.7998000,44.8000000,0.0000000,0.0000000,0.0000000); //object(vgsbldng01_lvs) (1)
  425.     CreateObject(8419,1344.9000000,4291.5000000,44.8000000,0.0000000,0.0000000,0.0000000); //object(vgsbldng01_lvs) (2)
  426.     CreateObject(8419,1253.0000000,4291.8999000,44.8000000,0.0000000,0.0000000,0.0000000); //object(vgsbldng01_lvs) (3)
  427.     CreateObject(8419,1184.6000000,4224.0000000,44.8000000,0.0000000,0.0000000,270.0000000); //object(vgsbldng01_lvs) (4)
  428.     CreateObject(8419,1096.2000000,4176.8999000,44.8000000,0.0000000,0.0000000,270.0000000); //object(vgsbldng01_lvs) (5)
  429.     CreateObject(18450,1012.2000000,4175.7998000,56.2000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (70)
  430.     CreateObject(18450,1012.2002000,4175.7998000,56.2000000,0.0000000,13.7500000,0.0000000); //object(cs_roadbridge04) (71)
  431.     CreateObject(18450,1011.0000000,4175.7998000,56.2000000,0.0000000,25.9990000,0.0000000); //object(cs_roadbridge04) (72)
  432.     CreateObject(18450,1010.3000000,4175.7998000,56.2000000,0.0000000,33.2490000,0.0000000); //object(cs_roadbridge04) (73)
  433.     CreateObject(18450,1009.3000000,4175.7998000,56.2000000,0.0000000,41.9950000,0.0000000); //object(cs_roadbridge04) (74)
  434.     CreateObject(18450,1007.7000000,4175.7998000,56.2000000,0.0000000,55.2400000,0.0000000); //object(cs_roadbridge04) (75)
  435.     CreateObject(18450,1005.7000000,4175.7998000,56.2000000,0.0000000,68.9890000,0.0000000); //object(cs_roadbridge04) (76)
  436.     CreateObject(18450,1003.8000000,4175.7998000,56.2000000,0.0000000,79.9890000,2.0000000); //object(cs_roadbridge04) (77)
  437.     CreateObject(18450,989.5999800,4175.2998000,65.5000000,0.0000000,104.4860000,2.0000000); //object(cs_roadbridge04) (78)
  438.     CreateObject(18450,995.7999900,4175.5000000,64.0000000,0.0000000,92.7350000,2.0000000); //object(cs_roadbridge04) (79)
  439.     CreateObject(18450,1054.4000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (81)
  440.     CreateObject(8392,1081.4000000,4175.7002000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (1)
  441.     CreateObject(8392,1167.9000000,4209.2998000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (2)
  442.     CreateObject(8392,1199.7000000,4231.3999000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (3)
  443.     CreateObject(8392,1258.3000000,4256.5000000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (4)
  444.     CreateObject(8392,1259.2000000,4300.5000000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (6)
  445.     CreateObject(8392,1289.7000000,4322.5000000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (7)
  446.     CreateObject(18450,1134.3000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (82)
  447.     CreateObject(18450,1214.2001000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (83)
  448.     CreateObject(18450,1294.1001000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (84)
  449.     CreateObject(18450,1374.0000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (85)
  450.     CreateObject(18450,1374.0000000,4175.7002000,102.7000000,0.0000000,0.0000000,0.0000000); //object(cs_roadbridge04) (99)
  451.     CreateObject(18450,1379.0900000,4175.7002000,103.0202300,0.0000000,-7.2000000,0.0000000); //object(cs_roadbridge04) (86)
  452.     CreateObject(18450,1384.0996000,4175.7002000,103.9758800,0.0000000,-14.4000000,0.0000000); //object(cs_roadbridge04) (87)
  453.     CreateObject(18450,1388.9500000,4175.7002000,105.5518600,0.0000000,-21.6000000,0.0000000); //object(cs_roadbridge04) (88)
  454.     CreateObject(18450,1393.5646000,4175.7002000,107.7233400,0.0000000,-28.8000000,0.0000000); //object(cs_roadbridge04) (89)
  455.     CreateObject(18450,1397.8707000,4175.7002000,110.4560500,0.0000000,-36.0000000,0.0000000); //object(cs_roadbridge04) (90)
  456.     CreateObject(18450,1401.8003000,4175.7002000,113.7069200,0.0000000,-43.2000000,0.0000000); //object(cs_roadbridge04) (91)
  457.     CreateObject(8419,1657.0000000,4166.0000000,1.3000000,0.0000000,0.0000000,88.0000000); //object(vgsbldng01_lvs) (6)
  458.     CreateObject(8392,1290.0000000,4278.4004000,3.3000000,0.0000000,90.0000000,0.0000000); //object(ballys02_lvs) (8)
  459.     CreateObject(8392,1671.0000000,4243.2002000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (9)
  460.     CreateObject(8392,1689.3000000,4243.2002000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (10)
  461.     CreateObject(8392,1649.2000000,4243.2002000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (11)
  462.     CreateObject(8392,1626.9000000,4242.8999000,23.3000000,0.0000000,0.0000000,90.0000000); //object(ballys02_lvs) (12)
  463.     CreateObject(8392,1752.8000000,4179.0000000,23.3000000,0.0000000,0.0000000,358.0000000); //object(ballys02_lvs) (13)
  464.     CreateObject(8392,1752.1000000,4157.7998000,23.3000000,0.0000000,0.0000000,357.9950000); //object(ballys02_lvs) (14)
  465.     CreateObject(8392,1751.3000000,4137.3999000,23.3000000,0.0000000,0.0000000,357.9950000); //object(ballys02_lvs) (15)
  466.     CreateObject(8392,1688.8000000,4086.7000000,23.3000000,0.0000000,0.0000000,270.0000000); //object(ballys02_lvs) (16)
  467.     CreateObject(8392,1667.2000000,4086.7000000,23.3000000,0.0000000,0.0000000,269.9950000); //object(ballys02_lvs) (17)
  468.     CreateObject(8392,1646.7000000,4086.7000000,23.3000000,0.0000000,0.0000000,269.9950000); //object(ballys02_lvs) (18)
  469.     CreateObject(8392,1626.3000000,4086.8000000,23.3000000,0.0000000,0.0000000,269.9950000); //object(ballys02_lvs) (19)
  470.     CreateObject(18450,1603.6000000,5166.8999000,72.1000000,0.0000000,270.0000000,175.9900000); //object(cs_roadbridge04) (21)
  471.     CreateObject(18450,1819.1000000,5151.6001000,18.4000000,0.0000000,332.2450000,175.9900000); //object(cs_roadbridge04) (21)
  472.     SetTimer("teles", 500, true);
  473.     return 1;
  474. }
  475.  
  476. forward teles(playerid);
  477. public teles(playerid)
  478. {
  479.     for(new i=0;i<MAX_PLAYERS;i++)
  480.     {
  481.        
  482.         if(IsPlayerInRangeOfPoint(i, 2,1608.9000244141,5167,73.400001525879))
  483.         {
  484.            
  485.             new VehicleID,Float:X,Float:Y,Float:Z;
  486.             GetPlayerPos(playerid,X,Y,Z);
  487.             VehicleID = GetPlayerVehicleID(playerid);
  488.             SetVehiclePos(VehicleID,X,Y,Z);
  489.             SetVehicleZAngle(VehicleID,0);
  490.             GameTextForPlayer(playerid, "~r~Etap2", 3000, 1);
  491.             SetPlayerPos(playerid,1671.1999511719,5168.7001953125,607);
  492.             if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
  493.             {
  494.                
  495.                 new vehid = GetPlayerVehicleID(playerid);
  496.                 SetVehiclePos(vehid,1671.1999511719,5168.7001953125,607);
  497.                 PutPlayerInVehicle(playerid,vehid,0);
  498.             }
  499.         }
  500.     }
  501.     return 1;
  502. }
  503.  
  504. dcmd_hitman(playerid, params[])
  505. {
  506.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You have to be an rcon adminitrator!");
  507.     if(IsGameOn ==1) return SendClientMessage(playerid,red,"The minigame is already on!");
  508.  
  509.     StartHitman();
  510.     #pragma unused params
  511.     return true;
  512. }
  513.  
  514. dcmd_endhitman(playerid, params[])
  515. {
  516.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,red,"You have to be an rcon adminitrator!");
  517.     if(!IsGameOn) return SendClientMessage(playerid,red,"The minigame is already off!");
  518.     EndHitman();
  519.     SendClientMessage(playerid,yellow,"You have successfully ended the hitman minigame.");
  520.     GameTextForAll("Minigame Over",5000,1);
  521.     #pragma unused params
  522.     return true;
  523. }
  524.  
  525. StartHitman()
  526. {
  527.     new id = GetRandomID();
  528.     GameTextForAll("~w~Kill the ~r~red~w~ player!",5000,1);
  529.     format(lolz,256,"%s has been identified as a very dangerous terrorist",PlayerName(id));
  530.     SendClientMessageToAll(red,lolz);
  531.     SendClientMessageToAll(red,"and is Wanted Dead or Alive!");
  532.     format(lolz,256,"Whoever can kill %s will win $%d.",PlayerName(id),CASH_PRIZE);
  533.     SendClientMessageToAll(red,lolz);
  534.     for(new i =0; i <MAX_PLAYERS; i++)
  535.     {
  536.        
  537.         color[i] = GetPlayerColor(i);
  538.         SetPlayerColor(i,white);
  539.         GivePlayerWeapon(i,WEAPON_ID,WEAPON_AMMO);
  540.     }
  541.  
  542.     ResetPlayerWeapons(id);
  543.     SetPlayerArmour(id,100);
  544.     SetPlayerHealth(id,100);
  545.     SetPlayerColor(id,red);
  546.     PlayerHitman[id] = true;
  547.     SetTimerEx("VehicleTimerHealth",30*1000,false,"i",id);
  548.     IsGameOn = 1;
  549.  
  550. }
  551.  
  552. EndHitman()
  553. {
  554.     KillTimer(0);
  555.     IsGameOn = 0;
  556.     for(new i =0; i <MAX_PLAYERS; i++)
  557.     {
  558.        
  559.         SetPlayerColor(i,color[i]);
  560.         PlayerHitman[i] = false;
  561.     }
  562.  
  563. }
  564.  
  565. public OnGameModeExit()
  566. {
  567.     return 1;
  568. }
  569.  
  570. public SendMSG()
  571. {
  572.     new randMSG=
  573.     random(sizeof(AleaMSG));//On calcule par rapport a la taille de la variable AleaMSG qui est 3
  574.     SendClientMessageToAll(0xFFFFFFAA, AleaMSG[randMSG]); //Remplacez "COULEUR" PAR LA COULEUR DE VOTRE CHOIX
  575. }
  576.  
  577. public OnPlayerRequestClass(playerid, classid)
  578. {
  579.     PClassID[playerid] = classid;
  580.     SetPlayerPos(playerid, 1544.7887,-1675.4630,13.5591);
  581.     SetPlayerFacingAngle(playerid,90.0);
  582.     SetPlayerCameraPos(playerid, 1541.5293,-1675.4012,13.5527);
  583.     SetPlayerCameraLookAt(playerid, 1544.7887,-1675.4630,13.5591);
  584.     return 1;
  585. }
  586.  
  587.  
  588. public OnPlayerConnect(playerid)
  589. {
  590.     new pname[128];  // This get's the length of the player name
  591.     new file[128];        // This get's the lenght of the file
  592.     GetPlayerName(playerid, pname, sizeof(pname)); // This get's the player name with the lenght of the player name
  593.     format(file, sizeof(file), savefolder,pname); // This describe's where to save and how to save it
  594.     if(!dini_Exists(file))
  595.     {
  596.          // If the file exist
  597.         dini_Create(file); // Create the file
  598.         dini_IntSet(file, "Score", 0); // Set's "Score"
  599.         dini_IntSet(file, "Money", 0); // Set's "Money"
  600.         dini_IntSet(file, "Kills", Killz[playerid]); // Set's "Kills"
  601.         dini_IntSet(file, "Deaths", Deathz[playerid]); // Set's "Deaths"
  602.         dini_IntSet(file, "Skin", 0); // Set's Skin
  603.         SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
  604.         SetPlayerMoney(playerid, dini_Int(file, "Money")); // This describes where to load the money
  605.         SetPlayerSkin(playerid, dini_Int(file, "Skin")); // This describes where to load the skin
  606.         // and at last this set's the value which were on the file
  607.     }
  608.     else
  609.     {
  610.        
  611.         SetPlayerScore(playerid, dini_Int(file, "Score"));
  612.         SetPlayerMoney(playerid, dini_Int(file, "Money"));
  613.         SetPlayerSkin(playerid, dini_Int(file, "Skin"));
  614.         // the same thing
  615.     }
  616.     return 1;
  617. }
  618. public OnPlayerDisconnect(playerid, reason)
  619. {
  620.     new pname[128]; // The name length
  621.     new file[128]; // The file length
  622.     GetPlayerName(playerid, pname, sizeof(pname)); //  This get's the player name with the name length
  623.     format(file, sizeof(file), savefolder,pname); // Formatting file
  624.     if(!dini_Exists(file)) { // If the file exist
  625.     }
  626.     else { // if not
  627.         dini_IntSet(file, "Score", GetPlayerScore(playerid)); // This Get the Score
  628.         dini_IntSet(file, "Money", GetPlayerMoney(playerid)); // This Get the cash
  629.         dini_IntSet(file, "Kills", Killz[playerid]);  // This get the kills
  630.         dini_IntSet(file, "Deaths", Deathz[playerid]); // This get the Deaths
  631.         dini_IntSet(file, "Skin", GetPlayerSkin(playerid)); // This get the skin
  632.     }
  633.     return 1;
  634. }
  635. public OnPlayerSpawn(playerid)
  636. {
  637.     return 1;
  638. }
  639.  
  640. public VehicleTimerHealth(playerid)
  641. {
  642.     if(!IsPlayerInAnyVehicle(playerid)) return false;
  643.     if(IsGameOn)
  644.     {
  645.        
  646.         SetVehicleHealth((GetPlayerVehicleID(playerid)),100);
  647.         SendClientMessage(playerid,red,"Burn Baby Burn!");
  648.         SetTimerEx("VehicleTimerHealth",30*1000,false,"i",playerid);
  649.         return false;
  650.     }
  651.     KillTimer(0);
  652.     return true;
  653. }
  654.  
  655. public OnPlayerDeath(playerid,killerid,reason)
  656. {
  657.     Killz[killerid] ++; // The killer value will be increased
  658.     Deathz[playerid] ++; // The death value will be increased
  659.     GivePlayerMoney(killerid, 1000);
  660.     SendClientMessage(killerid, -1, "You have been awarded $1000 for the kill.");
  661.     if(PlayerHitman[playerid])
  662.     {
  663.        
  664.         if(killerid == INVALID_PLAYER_ID)
  665.         {
  666.            
  667.             format(lolz,256,"%s has killed himself, the minigame is over!",PlayerName(playerid));
  668.             SendClientMessageToAll(red,lolz);
  669.             EndHitman();
  670.             return false;
  671.         }
  672.         format(lolz,256,"%s has killed the Terrorist, %s! The Minigame is over!!",PlayerName(killerid),PlayerName(playerid));
  673.         SendClientMessageToAll(red,lolz);
  674.         EndHitman();
  675.         GivePlayerMoney(killerid,CASH_PRIZE);
  676.     }
  677.     return true;
  678. }
  679.  
  680. public OnVehicleSpawn(vehicleid)
  681. {
  682.     return 1;
  683. }
  684.  
  685. public OnVehicleDeath(vehicleid, killerid)
  686. {
  687.     return 1;
  688. }
  689.  
  690. public OnPlayerText(playerid, text[])
  691. {
  692.     return 1;
  693. }
  694.  
  695. public OnPlayerCommandText(playerid, cmdtext[])
  696.  
  697. {
  698.     dcmd(hitman,6,cmdtext);
  699.     dcmd(endhitman,9,cmdtext);
  700.     return 0;
  701. }
  702.  
  703. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  704. {
  705.     return 1;
  706. }
  707.  
  708. public OnPlayerExitVehicle(playerid, vehicleid)
  709. {
  710.     return 1;
  711. }
  712.  
  713. public OnPlayerStateChange(playerid, newstate, oldstate)
  714. {
  715.     return 1;
  716. }
  717.  
  718. //911 Call
  719. CMD:911(playerid, params[])
  720. {
  721.     //911 system
  722.     if(isnull(params)) return SendClientMessage(playerid, COLOR_ROYALBLUE, "USAGE: 911 message and location!");
  723.     new sendername[MAX_PLAYER_NAME], string[128];
  724.     GetPlayerName(playerid, sendername, sizeof(sendername));
  725.     SendClientMessage(playerid, COLOR_ROYALBLUE, "*DISPATCHER: Ok, Thanks! We'll get a unit to you, please remain at your location and wait.");
  726.     SendClientMessage(playerid, COLOR_LIGHTSKYBLUE, "They hang up...");
  727.     for(new i=0;i<MAX_PLAYERS;i++) {
  728.         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) {
  729.             SendClientMessage(i, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
  730.             SendClientMessage(i, COLOR_ROYALBLUE, "DPS AUTOMATED DISPATCH");
  731.             SendClientMessage(i, COLOR_GREY, "911 Call");
  732.             format(string, sizeof(string), "NAME: %s (ID: %i)", sendername, playerid);
  733.             SendClientMessage(i, COLOR_GREY, string);
  734.             format(string, sizeof(string), "CALL INFO: %s", params);
  735.             SendClientMessage(i, COLOR_GREY, string);
  736.             SendClientMessage(i, COLOR_GREY, "Suggested action: Get to the scene for a verify of the call.");
  737.             SendClientMessage(i, COLOR_GREY, "Call code: Unknown.");
  738.             SendClientMessage(i, COLOR_GREY, "-------------------------------------------------------------------------------------------------");
  739.             SendClientMessage(i, COLOR_GOLD, "[INFO]A marker has been put on your GPS. Enter it to remove it.");
  740.             new Float:X, Float:Y, Float:Z;
  741.             GetPlayerPos(playerid, X, Y, Z);
  742.             SetPlayerCheckpoint(i, X, Y, Z, 5.0);
  743.         }
  744.  
  745.     }
  746.     return 1;
  747. }
  748.  
  749. public OnPlayerEnterCheckpoint(playerid)
  750. {
  751.     DisablePlayerCheckpoint(playerid);
  752.     return 1;
  753. }
  754.  
  755. public OnPlayerLeaveCheckpoint(playerid)
  756. {
  757.     return 1;
  758. }
  759.  
  760. public OnPlayerEnterRaceCheckpoint(playerid)
  761. {
  762.     return 1;
  763. }
  764.  
  765. public OnPlayerLeaveRaceCheckpoint(playerid)
  766. {
  767.     return 1;
  768. }
  769.  
  770. public OnRconCommand(cmd[])
  771. {
  772.     return 1;
  773. }
  774.  
  775. public OnPlayerRequestSpawn(playerid)
  776. {
  777.     if(PClassID[playerid] == 285)
  778.     {
  779.        
  780.         if(IsPlayerAdmin(playerid))
  781.         {
  782.            
  783.             return 1;
  784.         }
  785.         else
  786.         {
  787.            
  788.             return 0;
  789.         }
  790.     }
  791.     return 1;
  792. }
  793.  
  794. public OnObjectMoved(objectid)
  795. {
  796.     return 1;
  797. }
  798.  
  799. public OnPlayerObjectMoved(playerid, objectid)
  800. {
  801.     return 1;
  802. }
  803.  
  804. public OnPlayerPickUpPickup(playerid, pickupid)
  805. {
  806.     return 1;
  807. }
  808.  
  809. public OnVehicleMod(playerid, vehicleid, componentid)
  810. {
  811.     return 1;
  812. }
  813.  
  814. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  815. {
  816.     return 1;
  817. }
  818.  
  819. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  820. {
  821.     return 1;
  822. }
  823.  
  824. public OnPlayerSelectedMenuRow(playerid, row)
  825. {
  826.     return 1;
  827. }
  828.  
  829. public OnPlayerExitedMenu(playerid)
  830. {
  831.     return 1;
  832. }
  833.  
  834. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  835. {
  836.     return 1;
  837. }
  838.  
  839. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  840. {
  841.     return 1;
  842. }
  843.  
  844. public OnRconLoginAttempt(ip[], password[], success)
  845. {
  846.     return 1;
  847. }
  848.  
  849. public OnPlayerUpdate(playerid)
  850. {
  851.     return 1;
  852. }
  853.  
  854. public OnPlayerStreamIn(playerid, forplayerid)
  855. {
  856.     return 1;
  857. }
  858.  
  859. public OnPlayerStreamOut(playerid, forplayerid)
  860. {
  861.     return 1;
  862. }
  863.  
  864. public OnVehicleStreamIn(vehicleid, forplayerid)
  865. {
  866.     return 1;
  867. }
  868.  
  869. public OnVehicleStreamOut(vehicleid, forplayerid)
  870. {
  871.     return 1;
  872. }
  873.  
  874. CMD:commands(playerid, params[])
  875. {
  876.     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");
  877.     return 1;
  878. }
  879.  
  880. public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
  881. {
  882.     if(dialogid == dialogID)
  883.     {
  884.        
  885.         if(response)
  886.         {
  887.            
  888.             if(!strlen(inputtext)) return ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Please type Your question.","Next","Close");
  889.             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");
  890.             format(vSys_Question,64,"%s",inputtext);
  891.             ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type first question answer option.","Next","Close");
  892.             return 1;
  893.         }
  894.     }
  895.     if(dialogid == dialogID+1)
  896.     {
  897.        
  898.         if(!response) return ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Please type Your question.","Next","Close");
  899.         if(response)
  900.         {
  901.            
  902.             if(!strlen(inputtext)) return ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type first question answer option.","Next","Close");
  903.             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");
  904.             format(vSys_Answer1,10,"%s",inputtext);
  905.             ShowPlayerDialog(playerid,dialogID+2,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type second answer of the question.","Next","Close");
  906.             return 1;
  907.         }
  908.     }
  909.     if(dialogid == dialogID+2)
  910.     {
  911.        
  912.         if(!response) return ShowPlayerDialog(playerid,dialogID+1,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Type first question answer option.","Next","Close");
  913.         if(response)
  914.         {
  915.            
  916.             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");
  917.             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");
  918.             format(vSys_Answer2,10,"%s",inputtext);
  919.             for(new i=0;i<MAX_PLAYERS;i++)
  920.             {
  921.                
  922.                 if(IsPlayerConnected(i))
  923.                 {
  924.                    
  925.                     NeedAnswers++;
  926.                     ShowPlayerDialog(i,dialogID+3,DIALOG_STYLE_MSGBOX,"Vote System - created by Martin_M",vSys_Question,vSys_Answer1,vSys_Answer2);
  927.                 }
  928.             }
  929.             return 1;
  930.         }
  931.     }
  932.     if(dialogid == dialogID+3)
  933.     {
  934.        
  935.         new msg[128];
  936.         if(!response)
  937.         {
  938.            
  939.             AnswersForAnswer2++;
  940.             NeedAnswers--;
  941.             format(msg,128,"%s choose %s",PlayerName(playerid),vSys_Answer2);
  942.             for(new i=0;i<MAX_PLAYERS;i++){
  943.                 if(IsPlayerConnected(i)){
  944.                     if(IsPlayerAdmin(i)){
  945.                         SendClientMessage(i,AnswerMessageColor,msg);
  946.                     }}}
  947.             if(NeedAnswers <= 0)
  948.             {
  949.                
  950.                 format(msg,128,"Vote completed. %s (%d) - %s (%d)",vSys_Answer1,AnswersForAnswer1,vSys_Answer2,AnswersForAnswer2);
  951.                 for(new i=0;i<MAX_PLAYERS;i++){
  952.                     if(IsPlayerConnected(i)){
  953.                         if(IsPlayerAdmin(i)){
  954.                             SendClientMessage(i,AnswerMessageColor,msg);
  955.                         }}}
  956.                 AnswersForAnswer1 = 0;
  957.                 AnswersForAnswer2 = 0;
  958.             }
  959.             return 1;
  960.         }
  961.         if(response)
  962.         {
  963.            
  964.             AnswersForAnswer1++;
  965.             NeedAnswers--;
  966.             format(msg,128,"%s choose %s",PlayerName(playerid),vSys_Answer1);
  967.             for(new i=0;i<MAX_PLAYERS;i++){
  968.                 if(IsPlayerConnected(i)){
  969.                     if(IsPlayerAdmin(i)){
  970.                         SendClientMessage(i,AnswerMessageColor,msg);
  971.                     }}}
  972.             if(NeedAnswers <= 0)
  973.             {
  974.                
  975.                 format(msg,128,"Vote completed. %s (%d) - %s (%d)",vSys_Answer1,AnswersForAnswer1,vSys_Answer2,AnswersForAnswer2);
  976.                 for(new i=0;i<MAX_PLAYERS;i++){
  977.                     if(IsPlayerConnected(i)){
  978.                         if(IsPlayerAdmin(i)){
  979.                             SendClientMessage(i,AnswerMessageColor,msg);
  980.                         }}}
  981.                 AnswersForAnswer1 = 0;
  982.                 AnswersForAnswer2 = 0;
  983.             }
  984.             return 1;
  985.         }
  986.     }
  987.     return 1;
  988. }
  989.  
  990. stock GetRandomID() //thanks to Boylett
  991. {
  992.     new bool:connected[MAX_PLAYERS] = false, amount = 0;
  993.     for(new i = 0; i < MAX_PLAYERS; i++)
  994.     if(IsPlayerConnected(i))
  995.     {
  996.        
  997.         connected[i] = true;
  998.         amount++;
  999.     }
  1000.     if(amount == 0) return -1;
  1001.     new rand = random(amount), done = 0;
  1002.     for(new i = 0; i < MAX_PLAYERS; i++)
  1003.     if(connected[i])
  1004.     {
  1005.        
  1006.         if(done == rand) return i;
  1007.         done++;
  1008.     }
  1009.     return -1;
  1010. }
  1011.  
  1012. stock PlayerName(playerid)
  1013. {
  1014.     new name[255];
  1015.     GetPlayerName(playerid, name, 255);
  1016.     return name;
  1017. }
  1018.  
  1019. CMD:withdraw(playerid, params[])
  1020. {
  1021.     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))
  1022.     {
  1023.        
  1024.         new money, string[128];
  1025.         if(sscanf(params, "i", money)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /withdraw [money]");
  1026.         if(PlayerInfo[playerid][pBank] < money) return SendClientMessage(playerid, COLOR_RED, "You Don't have that much Money in your Account");
  1027.         GivePlayerMoney(playerid, money);
  1028.         PlayerInfo[playerid][pBank] -= money;
  1029.         format(string,sizeof(string),"Withdraw, %d$ from your bank account, Total Money In Bank Now: %d",money, PlayerInfo[playerid][pBank]);
  1030.         SendClientMessage(playerid,COLOR_RED,string);
  1031.     }
  1032.     else SendClientMessage(playerid, COLOR_RED, "You Must be near ATM or at Bank to Use this Command");
  1033.     return 1;
  1034. }
  1035.  
  1036. CMD:deposit(playerid, params[])
  1037. {
  1038.     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))
  1039.     {
  1040.        
  1041.         new money, string[128];
  1042.         if(sscanf(params, "i", money)) return SendClientMessage(playerid, COLOR_RED, "Syntax: /deposit [money]");
  1043.         if(money < PlayerInfo[playerid][pBank]) return SendClientMessage(playerid, COLOR_RED, "You Don't have that much Money in Hands.");
  1044.         GivePlayerMoney(playerid, -money);
  1045.         PlayerInfo[playerid][pBank] += money;
  1046.         format(string,sizeof(string),"Deposit, %d$ to bank, Total Money In Bank Now: %d",money, PlayerInfo[playerid][pBank]);
  1047.         SendClientMessage(playerid,COLOR_RED,string);
  1048.     }
  1049.     else SendClientMessage(playerid, COLOR_RED, "You Must be near ATM or at Bank to Use this Command");
  1050.     return 1;
  1051. }
  1052.  
  1053. CMD:balance(playerid, params[])
  1054. {
  1055.     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))
  1056.     {
  1057.        
  1058.         new string[128];
  1059.         format(string,sizeof(string),"[BALANCE]: %d",PlayerInfo[playerid][pBank]);
  1060.         SendClientMessage(playerid,COLOR_RED,string);
  1061.     }
  1062.     else SendClientMessage(playerid, COLOR_RED, "You Must be near ATM or at Bank to Use this Command");
  1063.     return 1;
  1064. }
  1065.  
  1066. CMD:enter(playerid, parms[])
  1067. {
  1068.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 1457.5433, -1010.5931, 26.8438))
  1069.     {
  1070.        
  1071.         SetPlayerPos(playerid, 2484.4021, -1662.1301, -1.3672);
  1072.         return 1;
  1073.     }
  1074.     else SendClientMessage(playerid, COLOR_RED, "You must be near entering place of Bank to use this command");
  1075.     return 1;
  1076. }
  1077.  
  1078. CMD:exit(playerid, parms[])
  1079. {
  1080.     if(IsPlayerInRangeOfPoint(playerid, 3.0, 2484.4021, -1662.1301, -1.3672))
  1081.     {
  1082.        
  1083.         SetPlayerPos(playerid, 1457.0161, -1010.7631, 26.8438);
  1084.         return 1;
  1085.     }
  1086.     else SendClientMessage(playerid, COLOR_RED, "You must be near exiting place of Bank to use this command");
  1087.     return 1;
  1088. }
  1089.  
  1090. COMMAND:vote(playerid,params[])
  1091. {
  1092.     if(!IsPlayerAdmin(playerid)) return 0;
  1093.     if(AnswersForAnswer1 != 0 || AnswersForAnswer2 != 0) return SendClientMessage(playerid,AnswerMessageColor,"You can't start new voting right now.");
  1094.     ShowPlayerDialog(playerid,dialogID,DIALOG_STYLE_INPUT,"Vote System - created by Martin_M","Please type Your question.","Next","Close");
  1095.     return 1;
  1096. }
  1097.  
  1098. COMMAND:endvote(playerid,params[])
  1099. {
  1100.     if(!IsPlayerAdmin(playerid)) return 0;
  1101.     if(AnswersForAnswer1 == 0 || AnswersForAnswer2 == 0) return SendClientMessage(playerid,AnswerMessageColor,"There is no vote created.");
  1102.     new msg[128];
  1103.     format(msg,128,"Vote completed. %s (%d) - %s (%d)",vSys_Answer1,AnswersForAnswer1,vSys_Answer2,AnswersForAnswer2);
  1104.     for(new i=0;i<MAX_PLAYERS;i++){
  1105.         if(IsPlayerConnected(i)){
  1106.             if(IsPlayerAdmin(i)){
  1107.                 SendClientMessage(i,AnswerMessageColor,msg);
  1108.             }}}
  1109.     AnswersForAnswer1 = 0;
  1110.     AnswersForAnswer2 = 0;
  1111.     NeedAnswers = 0;
  1112.     SendClientMessage(playerid,AnswerMessageColor,"Vote ended.");
  1113.     for(new i=0;i<MAX_PLAYERS;i++)
  1114.     {
  1115.        
  1116.         if(IsPlayerConnected(i))
  1117.         {
  1118.            
  1119.             NeedAnswers++;
  1120.             ShowPlayerDialog(i,dialogID+4,DIALOG_STYLE_MSGBOX,"Vote System - created by Martin_M","Vote ended."," "," ");
  1121.         }
  1122.     }
  1123.     return 1;
  1124. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement