Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. #define STOCK 600
  2.  
  3.  
  4. AddStaticVehicleEx(432,2779.3843,-2434.2644,13.3568,88.5203, 44, 86, 30000); // Army tank 1
  5. AddStaticVehicleEx(433,2779.4299,-2439.7708,13.3572,88.1692,44,86,30000); // Army Truck 2
  6. AddStaticVehicleEx(433,2779.1882,-2471.9214,13.3576,86.6550,44,86,30000); // Army Truck
  7. AddStaticVehicleEx(432,2779.1497,-2477.8547,13.3590,86.9500,44,86,30000); // Army tank 4
  8. AddStaticVehicleEx(432,2791.3584,-2494.2971,13.6588,89.3376,43,0,30000); // Army tank 5
  9. AddStaticVehicleEx(470,2792.0173,-2455.8245,14.0688,90,43,0,30000); // Army patriot 6
  10. AddStaticVehicleEx(470,2793.1680,-2418.1855,13.6259,88.3914,-1, -1, 30000); // Patriot 7
  11. AddStaticVehicleEx(470,2785.0979,-2417.6987,13.6273,87.4559, -1, -1, 30000); //Patriot 8
  12. AddStaticVehicleEx(470,2781.4146,-2455.5208,14.0714,90,43,0,30000); // Army Patriot 9
  13. AddStaticVehicleEx(430,2698.8132,-2311.0671,-0.2161,87.3657,-1, -1, 30000); // Army boat 10
  14. AddStaticVehicleEx(430,2722.9766,-2311.2756,-0.3360,89.2799,-1, -1, 30000); // Army boat 11
  15. AddStaticVehicleEx(520,2743.85009766,-2635.52197266,6.87926674,0.00000000,-1,-1,30000); //Hydra
  16. AddStaticVehicleEx(520,2722.21093750,-2637.16284180,6.87926674,0.00000000,-1,-1,30000); //Hydra
  17. AddStaticVehicleEx(520,2722.25488281,-2617.50415039,6.87926674,0.00000000,-1,-1,30000); //Hydra
  18. AddStaticVehicleEx(520,2743.02099609,-2616.84301758,6.87926674,0.00000000,-1,-1,30000); //Hydra
  19. AddStaticVehicleEx(520,2732.40649414,-2626.06298828,6.87926674,0.00000000,-1,-1,30000); //Hydra
  20. AddStaticVehicleEx(530,2786.70410156,-2422.49731445,13.43401432,0.00000000,44,86,30000); //Forklift
  21. AddStaticVehicleEx(530,2779.03564453,-2412.03149414,13.43588734,0.00000000,44,86,30000); //Forklift
  22. AddStaticVehicleEx(425,2794.82055664,-2344.60473633,14.48381233,0.00000000,44,86,30000); //Hunter
  23. AddStaticVehicleEx(497,2791.20190430,-2528.31469727,13.89527225,0.00000000,44,86,30000);
  24.  
  25. public IsACopCar(carid) // police modifier
  26. {
  27. if((carid >= 21) && (carid <= 40) || (carid == 16))
  28. {
  29. return 1;
  30. }
  31. return 0;
  32. }
  33.  
  34.  
  35. public IsNgCar(carid) //armée modifier
  36. {
  37. if((carid >= 1) && (carid <= 20))
  38. {
  39. return 1;
  40. }
  41. return 0;
  42. }
  43.  
  44. public IsAGangCar2(carid) // cosa modifier
  45. {
  46. if(carid >= 96 && carid <= 99)
  47. {
  48. return 1;
  49. }
  50. return 0;
  51. }
  52.  
  53. AddStaticPickup(1242,2,2797.0283,-2394.2327,13.9560,0); // le /equipement de l'armée
  54. Create3DTextLabel("/equipement",COLOR_RED,2797.0283,-2394.2327,13.9560,20,0);
  55.  
  56. AddStaticVehicleEx(487,1291.1233,-788.2377,96.4609,192.2056,86,86,30000); // stretch Cosa
  57. AddStaticVehicleEx(405,1249.4117,-781.9061,90.6226,2.6372,86,86,30000); // la Famiglia Corleone Car 97
  58. AddStaticVehicleEx(580,1243.4153,-803.8456,84.1406,181.6971,86,86,30000); // la Famiglia Corleone Van 98
  59. AddStaticVehicleEx(560,1255.5186,-803.7549,84.1406,176.8287,86,86,30000); // la Famiglia Corleone Sport Car 99
  60.  
  61.  
  62. if (strcmp(cmd,"/equipement",true) == 0) // modifier
  63. {
  64. if(PlayerToPoint(3,playerid,2797.0283,-2394.2327,13.9560))
  65. {
  66. ShowPlayerDialog(playerid,STOCK,DIALOG_STYLE_LIST,"Soldat : Veuillez choisir Votre Equipement Camarade !","Equipement Soldat\nEquipement Elite\nEquipement Sniper","Prendre","Retour");
  67. return 1;
  68. }
  69. }
  70.  
  71. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  72. {
  73. if(dialogid == STOCK)
  74. {
  75. if(response)
  76. {
  77. if(listitem == 0)
  78. {
  79. GivePlayerWeapon(playerid, 4, 1);
  80. GivePlayerWeapon(playerid, 24, 99999);
  81. GivePlayerWeapon(playerid, 31, 99999);
  82. GivePlayerWeapon(playerid, 46, 1);
  83. SetPlayerArmour(playerid, 100);
  84. SetPlayerSkin(playerid, 287);
  85. }
  86. if(listitem == 1)
  87. {
  88. GivePlayerWeapon(playerid, 26, 99999);
  89. GivePlayerWeapon(playerid, 33, 99999);
  90. GivePlayerWeapon(playerid, 17, 99999);
  91. GivePlayerWeapon(playerid, 3, 1);
  92. SetPlayerArmour(playerid, 100);
  93. SetPlayerSkin(playerid, 121);
  94. }
  95. if(listitem == 2)
  96. {
  97. GivePlayerWeapon(playerid, 23, 99999);
  98. GivePlayerWeapon(playerid, 3, 1);
  99. GivePlayerWeapon(playerid, 34, 99999);
  100. SetPlayerArmour(playerid, 100);
  101. SetPlayerSkin(playerid, 73);
  102. }
  103. }
  104. }
  105. return 1;
  106. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement