Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.01 KB | None | 0 0
  1. } case DIALOG_FVS: {
  2. if(!response) return 1;
  3. new Float: Pos[3];
  4. //new object, object3;
  5. GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  6. if(PlayerInfo[playerid][pMember] == 1) {
  7. switch(listitem) {
  8. case 0: {
  9. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  10. playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  11. // object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
  12. // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
  13. // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
  14. // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
  15. // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
  16. } case 1: playerVehicle[playerid] = CreateVehicle(596, Pos[0], Pos[1], Pos[2], 90, 0, 1, 120);
  17. case 2: playerVehicle[playerid] = CreateVehicle(599, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  18. case 3: {
  19. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  20. playerVehicle[playerid] = CreateVehicle(497, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  21. } case 4: playerVehicle[playerid] = CreateVehicle(523, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  22. }
  23. } if(PlayerInfo[playerid][pMember] == 2) {
  24. switch(listitem) {
  25. case 0: {
  26. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  27. playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  28. // object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
  29. // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
  30. // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
  31. // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
  32. // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
  33. } case 1: playerVehicle[playerid] = CreateVehicle(490, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  34. case 2: playerVehicle[playerid] = CreateVehicle(599, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  35. case 3: {
  36. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  37. playerVehicle[playerid] = CreateVehicle(497, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  38. } case 4: playerVehicle[playerid] = CreateVehicle(523, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  39. }
  40. } if(PlayerInfo[playerid][pMember] == 3) {
  41. switch(listitem) {
  42. case 0: {
  43. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  44. playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  45. // object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
  46. // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
  47. // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
  48. // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
  49. // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
  50. } case 1: playerVehicle[playerid] = CreateVehicle(470, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  51. case 2: {
  52. if(PlayerInfo[playerid][pRank] < 5) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  53. playerVehicle[playerid] = CreateVehicle(520, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  54. } case 3: {
  55. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  56. playerVehicle[playerid] = CreateVehicle(425, Pos[0], Pos[1], Pos[2], 90, 0, 0, 120);
  57. }
  58. }
  59. } if(PlayerInfo[playerid][pMember] == 4) {
  60. switch(listitem) {
  61. case 0: {
  62. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  63. playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  64. } case 1: {
  65. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  66. playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  67. } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  68. }
  69. } if(PlayerInfo[playerid][pMember] == 5) {
  70. switch(listitem) {
  71. case 0: {
  72. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  73. playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  74. } case 1: {
  75. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  76. playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  77. } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  78. }
  79. } if(PlayerInfo[playerid][pMember] == 6) {
  80. switch(listitem) {
  81. case 0: {
  82. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  83. playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  84. } case 1: {
  85. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  86. playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  87. } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  88. }
  89. } if(PlayerInfo[playerid][pMember] == 7) {
  90. switch(listitem) {
  91. case 0: {
  92. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  93. playerVehicle[playerid] = CreateVehicle(445, Pos[0], Pos[1], Pos[2], 90, 226, 226, 120);
  94. } case 1: playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 226, 226, 120);
  95. case 2: playerVehicle[playerid] = CreateVehicle(487, Pos[0], Pos[1], Pos[2], 90, 226, 226, 120);
  96. }
  97. } if(PlayerInfo[playerid][pMember] == 8) {
  98. switch(listitem) {
  99. case 1: {
  100. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  101. playerVehicle[playerid] = CreateVehicle(525, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
  102. }
  103. }
  104. } if(PlayerInfo[playerid][pMember] == 9) {
  105. switch(listitem) {
  106. case 0: playerVehicle[playerid] = CreateVehicle(582, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  107. case 1: {
  108. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  109. playerVehicle[playerid] = CreateVehicle(488, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  110. }
  111. }
  112. } if(PlayerInfo[playerid][pMember] == 10) {
  113. switch(listitem) {
  114. case 0: {
  115. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  116. playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  117. } case 1: {
  118. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  119. playerVehicle[playerid] = CreateVehicle(579, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  120. } case 2: playerVehicle[playerid] = CreateVehicle(567, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  121. }
  122. } if(PlayerInfo[playerid][pMember] == 11) {
  123. switch(listitem) {
  124. case 0: playerVehicle[playerid] = CreateVehicle(402, Pos[0], Pos[1], Pos[2], 90, 129, 129, 120);
  125. case 1: {
  126. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  127. playerVehicle[playerid] = CreateVehicle(487, Pos[0], Pos[1], Pos[2], 90, 129, 129, 120);
  128. } case 2: playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 129, 129, 120);
  129. }
  130. } if(PlayerInfo[playerid][pMember] == 12) {
  131. switch(listitem) {
  132. case 0: {
  133. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  134. playerVehicle[playerid] = CreateVehicle(560, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
  135. // object = CreateObject(19308,0.00000, 0.00000, 0.00000,0.00000, 0.00000, 0.00000);
  136. // AttachObjectToVehicle(object, playerVehicle[playerid], 0.000000, -0.249999, 0.949999, 0.000000, 0.000001, 90.449951); //Object Model: 19620 |
  137. } case 1: {
  138. if(PlayerInfo[playerid][pRank] < 1) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  139. playerVehicle[playerid] = CreateVehicle(438, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
  140. } case 2: {
  141. if(PlayerInfo[playerid][pRank] < 1) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  142. playerVehicle[playerid] = CreateVehicle(420, Pos[0], Pos[1], Pos[2], 90, 6, 6, 120);
  143. }
  144. }
  145. } if(PlayerInfo[playerid][pMember] == 13) {
  146. switch(listitem) {
  147. case 0: playerVehicle[playerid] = CreateVehicle(407, Pos[0], Pos[1], Pos[2], 90, 1, 2, 120);
  148. case 1: {
  149. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  150. playerVehicle[playerid] = CreateVehicle(416, Pos[0], Pos[1], Pos[2], 90, 1, 2, 120);
  151. }
  152. }
  153. } if(PlayerInfo[playerid][pMember] == 14) {
  154. switch(listitem) {
  155. case 0: {
  156. if(PlayerInfo[playerid][pRank] < 2) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  157. playerVehicle[playerid] = CreateVehicle(411, Pos[0], Pos[1], Pos[2], 90, 1, 1, 120);
  158. //object3 = CreateObject(19620,-2597.0762, -2638.4270, -5.3536, 0.0000, 0.0000, 0.0000);
  159. // AttachObjectToVehicle(object3, playerVehicle[playerid], 0.000000, 0.000000, 0.739999, 0.000000, 0.000000, 0.000000); //Object Model: 19620 |
  160. // new policecar = CreateObject(19327, -2597.0762, -2638.4270, -5.3536, -87.6999, 90.4001, -87.1805);
  161. // SetObjectMaterialText(policecar, "POLICE", 0, 50, "Arial", 25, 1, -16777216, 0, 1);
  162. // AttachObjectToVehicle(policecar, playerVehicle[playerid], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
  163. } case 1: playerVehicle[playerid] = CreateVehicle(596, Pos[0], Pos[1], Pos[2], 90, 0, 1, 120);
  164. case 2: playerVehicle[playerid] = CreateVehicle(599, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  165. case 3: {
  166. if(PlayerInfo[playerid][pRank] < 3) return SCM(playerid, COLOR_GREY, "Nu poti spawna acest vehicul deoarece nu ai rank-ul potrivit");
  167. playerVehicle[playerid] = CreateVehicle(497, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  168. } case 4: playerVehicle[playerid] = CreateVehicle(523, Pos[0], Pos[1], Pos[2], 90, 1, 0, 120);
  169. }
  170. }
  171. SCM(playerid, COLOR_WHITE, "Ti-ai spawnat o masina tasteaza comanda /frv daca vrei sa o respawnezi");
  172. PutPlayerInVehicle(playerid, playerVehicle[playerid], 0);
  173. vehicleFactions[playerVehicle[playerid]] = PlayerInfo[playerid][pMember];
  174. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement