Advertisement
Guest User

MOTOS-BYMATHEUS

a guest
Sep 2nd, 2011
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.62 KB | None | 0 0
  1. //==============================================================================
  2. #include <a_samp>
  3. #include <zcmd>
  4. //==============================================================================
  5. #define motocicletas 100
  6. //==============================================================================
  7. main()
  8. {
  9. print("==========================================");
  10. print("SiStEmA De MoToCiClEtAs ");
  11. print("==========================================");
  12. }
  13. //==============================================================================
  14. public OnPlayerConnect(playerid)
  15. {
  16. return 1;
  17. }
  18. //==============================================================================
  19. CMD:motos(playerid, params[])
  20. {
  21. ShowPlayerDialog(playerid,motocicletas,DIALOG_STYLE_LIST, "{FFFFFF}Motocicletas", "NRG-500\nFCR-900\nPCJ-600\nBF-400\nFreeway\nWayfarer\nSanchez\nHPV-1000\nFaggio\nPizzaboy\nQuadbike", "Spawnar", "Cancelar");
  22. return 1;
  23. }
  24. CMD:creditos(playerid, params[])
  25. {
  26. SendClientMessage(playerid, 0xFF0000FF,"Criador: Matheus_Vieira");
  27. SendClientMessage(playerid, 0xFF0000FF,"Postador: Matheus_Vieira");
  28. return 1;
  29. }
  30. //==============================================================================
  31. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  32. {
  33. if(dialogid == motocicletas)
  34. {
  35. switch(listitem)
  36. {
  37. case 0:
  38. {
  39. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  40. Int = GetPlayerInterior(playerid);
  41. GetPlayerPos(playerid, X, Y, Z);
  42. GetPlayerFacingAngle(playerid, Ang);
  43. pVeh = CreateVehicle(522, X, Y, Z, Ang, 0, 0, -1);
  44. LinkVehicleToInterior(pVeh, Int);
  45. PutPlayerInVehicle(playerid, pVeh, 0);
  46. }
  47. case 1:
  48. {
  49. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  50. Int = GetPlayerInterior(playerid);
  51. GetPlayerPos(playerid, X, Y, Z);
  52. GetPlayerFacingAngle(playerid, Ang);
  53. pVeh = CreateVehicle(521, X, Y, Z, Ang, 0, 0, -1);
  54. LinkVehicleToInterior(pVeh, Int);
  55. PutPlayerInVehicle(playerid, pVeh, 0);
  56. }
  57. case 2:
  58. {
  59. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  60. Int = GetPlayerInterior(playerid);
  61. GetPlayerPos(playerid, X, Y, Z);
  62. GetPlayerFacingAngle(playerid, Ang);
  63. pVeh = CreateVehicle(461, X, Y, Z, Ang, 0, 0, -1);
  64. LinkVehicleToInterior(pVeh, Int);
  65. PutPlayerInVehicle(playerid, pVeh, 0);
  66. }
  67. case 3:
  68. {
  69. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  70. Int = GetPlayerInterior(playerid);
  71. GetPlayerPos(playerid, X, Y, Z);
  72. GetPlayerFacingAngle(playerid, Ang);
  73. pVeh = CreateVehicle(581, X, Y, Z, Ang, 0, 0, -1);
  74. LinkVehicleToInterior(pVeh, Int);
  75. PutPlayerInVehicle(playerid, pVeh, 0);
  76. }
  77. case 4:
  78. {
  79. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  80. Int = GetPlayerInterior(playerid);
  81. GetPlayerPos(playerid, X, Y, Z);
  82. GetPlayerFacingAngle(playerid, Ang);
  83. pVeh = CreateVehicle(463, X, Y, Z, Ang, 0, 0, -1);
  84. LinkVehicleToInterior(pVeh, Int);
  85. PutPlayerInVehicle(playerid, pVeh, 0);
  86. }
  87. case 5:
  88. {
  89. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  90. Int = GetPlayerInterior(playerid);
  91. GetPlayerPos(playerid, X, Y, Z);
  92. GetPlayerFacingAngle(playerid, Ang);
  93. pVeh = CreateVehicle(586, X, Y, Z, Ang, 0, 0, -1);
  94. LinkVehicleToInterior(pVeh, Int);
  95. PutPlayerInVehicle(playerid, pVeh, 0);
  96. }
  97. case 6:
  98. {
  99. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  100. Int = GetPlayerInterior(playerid);
  101. GetPlayerPos(playerid, X, Y, Z);
  102. GetPlayerFacingAngle(playerid, Ang);
  103. pVeh = CreateVehicle(468, X, Y, Z, Ang, 0, 0, -1);
  104. LinkVehicleToInterior(pVeh, Int);
  105. PutPlayerInVehicle(playerid, pVeh, 0);
  106. }
  107. case 7:
  108. {
  109. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  110. Int = GetPlayerInterior(playerid);
  111. GetPlayerPos(playerid, X, Y, Z);
  112. GetPlayerFacingAngle(playerid, Ang);
  113. pVeh = CreateVehicle(523, X, Y, Z, Ang, 0, 0, -1);
  114. LinkVehicleToInterior(pVeh, Int);
  115. PutPlayerInVehicle(playerid, pVeh, 0);
  116. }
  117. case 8:
  118. {
  119. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  120. Int = GetPlayerInterior(playerid);
  121. GetPlayerPos(playerid, X, Y, Z);
  122. GetPlayerFacingAngle(playerid, Ang);
  123. pVeh = CreateVehicle(462, X, Y, Z, Ang, 0, 0, -1);
  124. LinkVehicleToInterior(pVeh, Int);
  125. PutPlayerInVehicle(playerid, pVeh, 0);
  126. }
  127. case 9:
  128. {
  129. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  130. Int = GetPlayerInterior(playerid);
  131. GetPlayerPos(playerid, X, Y, Z);
  132. GetPlayerFacingAngle(playerid, Ang);
  133. pVeh = CreateVehicle(448, X, Y, Z, Ang, 0, 0, -1);
  134. LinkVehicleToInterior(pVeh, Int);
  135. PutPlayerInVehicle(playerid, pVeh, 0);
  136. }
  137. case 10:
  138. {
  139. new Float:X, Float:Y, Float:Z, Float:Ang, Int, pVeh;
  140. Int = GetPlayerInterior(playerid);
  141. GetPlayerPos(playerid, X, Y, Z);
  142. GetPlayerFacingAngle(playerid, Ang);
  143. pVeh = CreateVehicle(471, X, Y, Z, Ang, 0, 0, -1);
  144. LinkVehicleToInterior(pVeh, Int);
  145. PutPlayerInVehicle(playerid, pVeh, 0);
  146. }
  147. }
  148. }
  149. return 1;
  150. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement