Guest User

Teleporter by coords

a guest
Dec 21st, 2011
3,857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 2.96 KB | None | 0 0
  1. /*
  2. Teleport by coords,mark and gotomark system by §ñ†¶e®ÐµÐe
  3. Special thanks to Y_Less for sscanf2
  4.                   ZeeX-ZCMD
  5. */
  6. #include <a_samp>
  7. #include <sscanf2>
  8. #include <zcmd>
  9. new Float:x;
  10. new Float:y;
  11. new Float:z;
  12. public OnFilterScriptInit()
  13. {
  14.     return 1;
  15. }
  16. CMD:telebycoord(playerid, params[])
  17. {
  18.     new x,y,z;
  19.     if(sscanf(params, "iii", x, y, z))return SendClientMessage(playerid, 0xFF0000FF, "Usage: /telebycoord [X Pos] [Y Pos] [Z Pos]");
  20.     SetPlayerPos(playerid, x, y, z);
  21.     return 1;
  22. }
  23. public OnFilterScriptExit()
  24. {
  25.     return 1;
  26. }
  27. public OnPlayerConnect(playerid)
  28. {
  29.     return 1;
  30. }
  31.  
  32. public OnPlayerDisconnect(playerid, reason)
  33. {
  34.     return 1;
  35. }
  36.  
  37. public OnPlayerSpawn(playerid)
  38. {
  39.     return 1;
  40. }
  41.  
  42. public OnPlayerDeath(playerid, killerid, reason)
  43. {
  44.     return 1;
  45. }
  46.  
  47. public OnVehicleSpawn(vehicleid)
  48. {
  49.     return 1;
  50. }
  51.  
  52. public OnVehicleDeath(vehicleid, killerid)
  53. {
  54.     return 1;
  55. }
  56.  
  57. public OnPlayerText(playerid, text[])
  58. {
  59.     return 1;
  60. }
  61.  
  62. public OnPlayerCommandText(playerid, cmdtext[])
  63. {
  64.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  65.     {
  66.         // Do something here
  67.         return 1;
  68.     }
  69.     return 0;
  70. }
  71.  
  72. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  73. {
  74.     return 1;
  75. }
  76.  
  77. public OnPlayerExitVehicle(playerid, vehicleid)
  78. {
  79.     return 1;
  80. }
  81.  
  82. public OnPlayerStateChange(playerid, newstate, oldstate)
  83. {
  84.     return 1;
  85. }
  86.  
  87. public OnPlayerEnterCheckpoint(playerid)
  88. {
  89.     return 1;
  90. }
  91.  
  92. public OnPlayerLeaveCheckpoint(playerid)
  93. {
  94.     return 1;
  95. }
  96.  
  97. public OnPlayerEnterRaceCheckpoint(playerid)
  98. {
  99.     return 1;
  100. }
  101.  
  102. public OnPlayerLeaveRaceCheckpoint(playerid)
  103. {
  104.     return 1;
  105. }
  106.  
  107. public OnRconCommand(cmd[])
  108. {
  109.     return 1;
  110. }
  111.  
  112. public OnPlayerRequestSpawn(playerid)
  113. {
  114.     return 1;
  115. }
  116.  
  117. public OnObjectMoved(objectid)
  118. {
  119.     return 1;
  120. }
  121.  
  122. public OnPlayerObjectMoved(playerid, objectid)
  123. {
  124.     return 1;
  125. }
  126.  
  127. public OnPlayerPickUpPickup(playerid, pickupid)
  128. {
  129.     return 1;
  130. }
  131.  
  132. public OnVehicleMod(playerid, vehicleid, componentid)
  133. {
  134.     return 1;
  135. }
  136.  
  137. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  138. {
  139.     return 1;
  140. }
  141.  
  142. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  143. {
  144.     return 1;
  145. }
  146.  
  147. public OnPlayerSelectedMenuRow(playerid, row)
  148. {
  149.     return 1;
  150. }
  151.  
  152. public OnPlayerExitedMenu(playerid)
  153. {
  154.     return 1;
  155. }
  156.  
  157. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  158. {
  159.     return 1;
  160. }
  161.  
  162. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  163. {
  164.     return 1;
  165. }
  166.  
  167. public OnRconLoginAttempt(ip[], password[], success)
  168. {
  169.     return 1;
  170. }
  171.  
  172. public OnPlayerUpdate(playerid)
  173. {
  174.     return 1;
  175. }
  176.  
  177. public OnPlayerStreamIn(playerid, forplayerid)
  178. {
  179.     return 1;
  180. }
  181.  
  182. public OnPlayerStreamOut(playerid, forplayerid)
  183. {
  184.     return 1;
  185. }
  186.  
  187. public OnVehicleStreamIn(vehicleid, forplayerid)
  188. {
  189.     return 1;
  190. }
  191.  
  192. public OnVehicleStreamOut(vehicleid, forplayerid)
  193. {
  194.     return 1;
  195. }
  196.  
  197. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  198. {
  199.     return 1;
  200. }
  201.  
  202. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  203. {
  204.     return 1;
  205. }
Advertisement
Add Comment
Please, Sign In to add comment