Advertisement
Guest User

Untitled

a guest
Jul 28th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.95 KB | None | 0 0
  1. #include <a_samp>
  2. #include <ocmd>
  3. #include <dini>
  4.  
  5. #define Color_Rot 0x870000FF
  6. #define Color_Gruen 0x00FF0000
  7.  
  8. #define DIALOG_EVENTMENU 1
  9.  
  10. #if defined FILTERSCRIPT
  11.  
  12. public OnFilterScriptInit()
  13. {
  14. print("\n--------------------------------------");
  15. print(" Blank Filterscript by your name here");
  16. print("--------------------------------------\n");
  17. return 1;
  18. }
  19.  
  20. public OnFilterScriptExit()
  21. {
  22. return 1;
  23. }
  24.  
  25. #else
  26.  
  27. main()
  28. {
  29. print("\n----------------------------------");
  30. print(" Blank Gamemode by your name here");
  31. print("----------------------------------\n");
  32. }
  33.  
  34. #endif
  35.  
  36. public OnGameModeInit()
  37. {
  38. SetGameModeText("Blank Script");
  39. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  40. return 1;
  41. }
  42.  
  43. public OnGameModeExit()
  44. {
  45. return 1;
  46. }
  47.  
  48. public OnPlayerRequestClass(playerid, classid)
  49. {
  50. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  51. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  52. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  53. return 1;
  54. }
  55.  
  56. public OnPlayerConnect(playerid)
  57. {
  58. return 1;
  59. }
  60.  
  61. public OnPlayerDisconnect(playerid, reason)
  62. {
  63. return 1;
  64. }
  65.  
  66. public OnPlayerSpawn(playerid)
  67. {
  68. return 1;
  69. }
  70.  
  71. public OnPlayerDeath(playerid, killerid, reason)
  72. {
  73. return 1;
  74. }
  75.  
  76. public OnVehicleSpawn(vehicleid)
  77. {
  78. return 1;
  79. }
  80.  
  81. public OnVehicleDeath(vehicleid, killerid)
  82. {
  83. return 1;
  84. }
  85.  
  86. public OnPlayerText(playerid, text[])
  87. {
  88. return 1;
  89. }
  90.  
  91. public OnPlayerCommandText(playerid, cmdtext[])
  92. {
  93. if (strcmp("/eventmenu", cmdtext, true, 10) == 0)
  94. {
  95. ShowPlayerDialog(playerid, DIALOG_EVENTMENU, DIALOG_STYLE_LIST," Eventmenue", "Race\r\n Parkhaus", "Auswählen", "Abbrechen");
  96. }
  97. return 0;
  98. }
  99.  
  100. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerExitVehicle(playerid, vehicleid)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerStateChange(playerid, newstate, oldstate)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerEnterCheckpoint(playerid)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerLeaveCheckpoint(playerid)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerEnterRaceCheckpoint(playerid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerLeaveRaceCheckpoint(playerid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnRconCommand(cmd[])
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerRequestSpawn(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnObjectMoved(objectid)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerObjectMoved(playerid, objectid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnPlayerPickUpPickup(playerid, pickupid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnVehicleMod(playerid, vehicleid, componentid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnPlayerSelectedMenuRow(playerid, row)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnPlayerExitedMenu(playerid)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnRconLoginAttempt(ip[], password[], success)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerUpdate(playerid)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerStreamIn(playerid, forplayerid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerStreamOut(playerid, forplayerid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnVehicleStreamIn(vehicleid, forplayerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnVehicleStreamOut(vehicleid, forplayerid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  226. {
  227. if(dialogid == DIALOG_EVENTMENU)
  228. if(response == 0)
  229. {
  230. SendClientMessage(playerid,Color_Rot,"Du hast den Vorgang abbgebrochen!");
  231. }
  232. if(response == 1)
  233. {
  234. SendClientMessage(playerid,Color_Gruen,"Du hast ein Event gestartet!");
  235. }
  236. if(dialogid == DIALOG_EVENTMENU)
  237. {
  238. if(listitem == 0)
  239. {
  240. CreateVehicle(411,2040.3149,1333.3838,10.8485,181.7485,1,6,60);
  241. }
  242. if(listitem == 1)
  243. {
  244. CreateVehicle(487,2040.3444,1357.1051,10.8485,180.9333,1,6,60);
  245. }
  246. }
  247. return 1;
  248. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement