Advertisement
Guest User

Untitled

a guest
Oct 19th, 2012
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.59 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. #define FILTERSCRIPT
  4. #include <a_samp>
  5. #include <zcmd>
  6. #include <sscanf2>
  7. #if defined FILTERSCRIPT
  8.  
  9. public OnFilterScriptInit()
  10. {
  11. print("\n--------------------------------------");
  12. print(" /goto by lorizz ");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit()
  18. {
  19. return 1;
  20. }
  21.  
  22. #else
  23.  
  24. main()
  25. {
  26. print("\n----------------------------------");
  27. print(" Blank Gamemode by your name here");
  28. print("----------------------------------\n");
  29. }
  30.  
  31. #endif
  32. /*
  33. public OnGameModeInit()
  34. {
  35. // Don't use these lines if it's a filterscript
  36. SetGameModeText("Blank Script");
  37. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  38. return 1;
  39. }
  40.  
  41. public OnGameModeExit()
  42. {
  43. return 1;
  44. }
  45. */
  46.  
  47. public OnPlayerRequestClass(playerid, classid)
  48. {
  49. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  50. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  52. return 1;
  53. }
  54.  
  55. public OnPlayerConnect(playerid)
  56. {
  57. return 1;
  58. }
  59.  
  60. public OnPlayerDisconnect(playerid, reason)
  61. {
  62. return 1;
  63. }
  64.  
  65. public OnPlayerSpawn(playerid)
  66. {
  67. return 1;
  68. }
  69.  
  70. public OnPlayerDeath(playerid, killerid, reason)
  71. {
  72. return 1;
  73. }
  74.  
  75. public OnVehicleSpawn(vehicleid)
  76. {
  77. return 1;
  78. }
  79.  
  80. public OnVehicleDeath(vehicleid, killerid)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnPlayerText(playerid, text[])
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnPlayerCommandText(playerid, cmdtext[])
  91. {
  92. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  93. {
  94. // Do something here
  95. return 1;
  96. }
  97. return 0;
  98. }
  99.  
  100. CMD:goto(playerid, params[])
  101. {
  102. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000AA, "Je moet admin zijn hiervoor! Stalkert! :P");
  103. new ID;
  104. new pn[MAX_PLAYER_NAME];
  105. new an[MAX_PLAYER_NAME];
  106. new health;
  107. new str[128];
  108. if(sscanf(params, "u", ID)) return SendClientMessage(playerid, 0xFF0000AA, "GEBRUIK: /goto [ID]");
  109. if(!IsPlayerConnected(ID)) return SendClientMessage(playerid, 0xFF0000AA, "FOUT: Die gebruiker is er niet! :(");
  110. GetPlayerName(playerid, an, MAX_PLAYER_NAME);
  111. GetPlayerName(ID, pn, MAX_PLAYER_NAME);
  112. new Float:x;
  113. new Float:y;
  114. new Float:z;
  115. GetPlayerPos(ID, x, y, z);
  116. SetPlayerPos(playerid, x+1, y+1, z);
  117. format(str, sizeof(str), "Je bent nu bij %s. Gezellig hoor!", pn,);
  118. SendClientMessage(playerid, 0x00FF00AA, str);
  119. if(IsPlayerInAnyVehicle(playerid))
  120. {
  121. new vehicleid;
  122. GetPlayerPos(ID, x, y, z);
  123. PutPlayerInVehicle(playerid, ID, 2); //"2" is de seat id :)
  124. }
  125. return 1;
  126. }
  127.  
  128. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  129. {
  130. return 1;
  131. }
  132.  
  133. public OnPlayerExitVehicle(playerid, vehicleid)
  134. {
  135. return 1;
  136. }
  137.  
  138. public OnPlayerStateChange(playerid, newstate, oldstate)
  139. {
  140. return 1;
  141. }
  142.  
  143. public OnPlayerEnterCheckpoint(playerid)
  144. {
  145. return 1;
  146. }
  147.  
  148. public OnPlayerLeaveCheckpoint(playerid)
  149. {
  150. return 1;
  151. }
  152.  
  153. public OnPlayerEnterRaceCheckpoint(playerid)
  154. {
  155. return 1;
  156. }
  157.  
  158. public OnPlayerLeaveRaceCheckpoint(playerid)
  159. {
  160. return 1;
  161. }
  162.  
  163. public OnRconCommand(cmd[])
  164. {
  165. return 1;
  166. }
  167.  
  168. public OnPlayerRequestSpawn(playerid)
  169. {
  170. return 1;
  171. }
  172.  
  173. public OnObjectMoved(objectid)
  174. {
  175. return 1;
  176. }
  177.  
  178. public OnPlayerObjectMoved(playerid, objectid)
  179. {
  180. return 1;
  181. }
  182.  
  183. public OnPlayerPickUpPickup(playerid, pickupid)
  184. {
  185. return 1;
  186. }
  187.  
  188. public OnVehicleMod(playerid, vehicleid, componentid)
  189. {
  190. return 1;
  191. }
  192.  
  193. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  194. {
  195. return 1;
  196. }
  197.  
  198. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  199. {
  200. return 1;
  201. }
  202.  
  203. public OnPlayerSelectedMenuRow(playerid, row)
  204. {
  205. return 1;
  206. }
  207.  
  208. public OnPlayerExitedMenu(playerid)
  209. {
  210. return 1;
  211. }
  212.  
  213. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  214. {
  215. return 1;
  216. }
  217.  
  218. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  219. {
  220. return 1;
  221. }
  222.  
  223. public OnRconLoginAttempt(ip[], password[], success)
  224. {
  225. return 1;
  226. }
  227.  
  228. public OnPlayerUpdate(playerid)
  229. {
  230. return 1;
  231. }
  232.  
  233. public OnPlayerStreamIn(playerid, forplayerid)
  234. {
  235. return 1;
  236. }
  237.  
  238. public OnPlayerStreamOut(playerid, forplayerid)
  239. {
  240. return 1;
  241. }
  242.  
  243. public OnVehicleStreamIn(vehicleid, forplayerid)
  244. {
  245. return 1;
  246. }
  247.  
  248. public OnVehicleStreamOut(vehicleid, forplayerid)
  249. {
  250. return 1;
  251. }
  252.  
  253. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  254. {
  255. return 1;
  256. }
  257.  
  258. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  259. {
  260. return 1;
  261. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement