Guest User

Codigo

a guest
Jun 18th, 2014
373
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. #include <a_samp>
  2. // New's
  3.  
  4. new Float:RandomSpawns[8][4] =
  5. {
  6. {-518.2049, 2582.2095, 53.4141, 190.6826},
  7. {-794.2049, 2728.4438, 45.3313, 190.6826},
  8. {-1462.1658, 2629.7920, 58.7734, 94.5117},
  9. {-1664.7017, 2540.5969, 85.4261, 262.1232},
  10. {383.9336, 2605.7737, 16.4844, 189.0924},
  11. {689.4990, 1949.0004, 5.5391, 167.4488},
  12. {262.8997, 1659.6973, 16.7253, 109.1683},
  13. {189.2527, 1395.0770, 10.5859, 181.5256}
  14. };
  15.  
  16.  
  17.  
  18. //
  19. public OnGameModeInit()
  20. {
  21.  
  22. SetGameModeText("Blank Script");
  23. AddPlayerClass(100, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  24. return 1;
  25. }
  26.  
  27. public OnGameModeExit()
  28. {
  29. return 1;
  30. }
  31.  
  32. public OnPlayerRequestClass(playerid, classid)
  33. {
  34. return 1;
  35. }
  36.  
  37. public OnPlayerConnect(playerid)
  38. {
  39. return 1;
  40. }
  41.  
  42. public OnPlayerDisconnect(playerid, reason)
  43. {
  44. return 1;
  45. }
  46.  
  47. public OnPlayerSpawn(playerid)
  48. {
  49. new Random = random(sizeof(RandomSpawns));
  50. SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]);
  51. SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]);
  52. SetPlayerInterior(playerid, 1);
  53. return 1;
  54. }
  55.  
  56. public OnPlayerDeath(playerid, killerid, reason)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnVehicleSpawn(vehicleid)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnVehicleDeath(vehicleid, killerid)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerText(playerid, text[])
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnPlayerCommandText(playerid, cmdtext[])
  77. {
  78. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  79. {
  80. // Do something here
  81. return 1;
  82. }
  83. return 0;
  84. }
  85.  
  86. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnPlayerExitVehicle(playerid, vehicleid)
  92. {
  93. return 1;
  94. }
  95.  
  96. public OnPlayerStateChange(playerid, newstate, oldstate)
  97. {
  98. return 1;
  99. }
  100.  
  101. public OnPlayerEnterCheckpoint(playerid)
  102. {
  103. return 1;
  104. }
  105.  
  106. public OnPlayerLeaveCheckpoint(playerid)
  107. {
  108. return 1;
  109. }
  110.  
  111. public OnPlayerEnterRaceCheckpoint(playerid)
  112. {
  113. return 1;
  114. }
  115.  
  116. public OnPlayerLeaveRaceCheckpoint(playerid)
  117. {
  118. return 1;
  119. }
  120.  
  121. public OnRconCommand(cmd[])
  122. {
  123. return 1;
  124. }
  125.  
  126. public OnPlayerRequestSpawn(playerid)
  127. {
  128. return 1;
  129. }
  130.  
  131. public OnObjectMoved(objectid)
  132. {
  133. return 1;
  134. }
  135.  
  136. public OnPlayerObjectMoved(playerid, objectid)
  137. {
  138. return 1;
  139. }
  140.  
  141. public OnPlayerPickUpPickup(playerid, pickupid)
  142. {
  143. return 1;
  144. }
  145.  
  146. public OnVehicleMod(playerid, vehicleid, componentid)
  147. {
  148. return 1;
  149. }
  150.  
  151. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  152. {
  153. return 1;
  154. }
  155.  
  156. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  157. {
  158. return 1;
  159. }
  160.  
  161. public OnPlayerSelectedMenuRow(playerid, row)
  162. {
  163. return 1;
  164. }
  165.  
  166. public OnPlayerExitedMenu(playerid)
  167. {
  168. return 1;
  169. }
  170.  
  171. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  172. {
  173. return 1;
  174. }
  175.  
  176. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  177. {
  178. return 1;
  179. }
  180.  
  181. public OnRconLoginAttempt(ip[], password[], success)
  182. {
  183. return 1;
  184. }
  185.  
  186. public OnPlayerUpdate(playerid)
  187. {
  188. return 1;
  189. }
  190.  
  191. public OnPlayerStreamIn(playerid, forplayerid)
  192. {
  193. return 1;
  194. }
  195.  
  196. public OnPlayerStreamOut(playerid, forplayerid)
  197. {
  198. return 1;
  199. }
  200.  
  201. public OnVehicleStreamIn(vehicleid, forplayerid)
  202. {
  203. return 1;
  204. }
  205.  
  206. public OnVehicleStreamOut(vehicleid, forplayerid)
  207. {
  208. return 1;
  209. }
  210.  
  211. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  212. {
  213. return 1;
  214. }
  215.  
  216. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  217. {
  218. return 1;
  219. }
Advertisement
Add Comment
Please, Sign In to add comment