Advertisement
Guest User

Untitled

a guest
Sep 25th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.38 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.  
  5. #include <a_samp>
  6.  
  7. #if defined FILTERSCRIPT
  8.  
  9. //definitionen
  10.  
  11. public OnFilterScriptInit()
  12. {
  13. print("\n--------------------------------------");
  14. print(" Blank Filterscript by your name here");
  15. print("--------------------------------------\n");
  16. return 1;
  17. }
  18.  
  19. public OnFilterScriptExit()
  20. {
  21. return 1;
  22. }
  23.  
  24. #else
  25.  
  26. main()
  27. {
  28. print("\n----------------------------------");
  29. print(" Selfmade 0.1");
  30. print("----------------------------------\n");
  31. }
  32. #define DIALOG_CHEAT 0001
  33. #define DIALOG_HELP 0002
  34.  
  35. #endif
  36.  
  37. public OnGameModeInit()
  38. {
  39. // Don't use these lines if it's a filterscript
  40. SetGameModeText("Blank Script");
  41. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  42. return 1;
  43. }
  44.  
  45. public OnGameModeExit()
  46. {
  47. return 1;
  48. }
  49.  
  50. public OnPlayerRequestClass(playerid, classid)
  51. {
  52. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  53. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  54. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  55. return 1;
  56. }
  57.  
  58. public OnPlayerConnect(playerid)
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnPlayerDisconnect(playerid, reason)
  64. {
  65. return 1;
  66. }
  67.  
  68. public OnPlayerSpawn(playerid)
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnPlayerDeath(playerid, killerid, reason)
  74. {
  75. return 1;
  76. }
  77.  
  78. public OnVehicleSpawn(vehicleid)
  79. {
  80. return 1;
  81. }
  82.  
  83. public OnVehicleDeath(vehicleid, killerid)
  84. {
  85. return 1;
  86. }
  87.  
  88. public OnPlayerText(playerid, text[])
  89. {
  90. return 1;
  91. }
  92.  
  93. public OnPlayerCommandText(playerid, cmdtext[])// das sind Befehle
  94. {
  95. if (strcmp("/help", cmdtext, true, 10) == 0)
  96. {
  97. ShowPlayerDialog(playerid,DIALOG_HELP, DIALOG_STYLE_LIST,"Befehle:","/help\n/cheats\n/tele","Aktzeptieren","Abbrechen");
  98. }
  99. return 1;
  100. if (strcmp("/cheat", cmdtext, true, 10) == 0)
  101. {
  102. ShowPlayerDialog(playerid,DIALOG_CHEAT, DIALOG_STYLE_LIST,"Cheats:","M4\nHeal","Aktzeptieren","Abbrechen");
  103. }
  104. return 1;
  105. if (strcmp("/teleport", cmdtext, true, 10) == 0)
  106. {
  107. SetPlayerPos(playerid,1542.5127,-1676.4347,13.5546,73.3714);
  108. }
  109. return 1;
  110. }
  111.  
  112. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  113. {
  114. return 1;
  115. }
  116.  
  117. public OnPlayerExitVehicle(playerid, vehicleid)
  118. {
  119. return 1;
  120. }
  121.  
  122. public OnPlayerStateChange(playerid, newstate, oldstate)
  123. {
  124. return 1;
  125. }
  126.  
  127. public OnPlayerEnterCheckpoint(playerid)
  128. {
  129. return 1;
  130. }
  131.  
  132. public OnPlayerLeaveCheckpoint(playerid)
  133. {
  134. return 1;
  135. }
  136.  
  137. public OnPlayerEnterRaceCheckpoint(playerid)
  138. {
  139. return 1;
  140. }
  141.  
  142. public OnPlayerLeaveRaceCheckpoint(playerid)
  143. {
  144. return 1;
  145. }
  146.  
  147. public OnRconCommand(cmd[])
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerRequestSpawn(playerid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnObjectMoved(objectid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnPlayerObjectMoved(playerid, objectid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnPlayerPickUpPickup(playerid, pickupid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnVehicleMod(playerid, vehicleid, componentid)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerSelectedMenuRow(playerid, row)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerExitedMenu(playerid)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnRconLoginAttempt(ip[], password[], success)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerUpdate(playerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnPlayerStreamIn(playerid, forplayerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnPlayerStreamOut(playerid, forplayerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnVehicleStreamIn(vehicleid, forplayerid)
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnVehicleStreamOut(vehicleid, forplayerid)
  233. {
  234. return 1;
  235. }
  236.  
  237. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  238. {
  239. if(dialogid == DIALOG_CHEAT)
  240. {
  241. if (response)
  242. {
  243. if (listitem == 0)
  244. {
  245. GivePlayerWeapon(playerid, 31, 500);
  246. SendClientMessage(playerid, 0x33AA33AA,"Du hast eine M4 erhalten");
  247. }
  248. if (listitem == 0)
  249. {
  250. SetPlayerHealth(playerid, 100);
  251. SendClientMessage(playerid, 0x33AA33AA,"Du wurdest geheilt");
  252. }
  253.  
  254. }
  255. }
  256.  
  257.  
  258. return 1;
  259. }
  260.  
  261. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  262. {
  263. return 1;
  264. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement