Advertisement
Guest User

Untitled

a guest
Jul 30th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.38 KB | None | 0 0
  1. include <a_samp>
  2. #include <ocmd>
  3.  
  4. #define DIALOG_CMENU 1
  5. #define DIALOG_AUTO 2
  6. #define DIALOG_BIKE 3
  7. #define DIALOG_BOOT 4
  8. #define DIALOG_TRUCK 5
  9. #if defined FILTERSCRIPT
  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(" Blank Gamemode by your name here");
  30. print("----------------------------------\n");
  31. }
  32.  
  33. #endif
  34.  
  35. public OnGameModeInit()
  36. {
  37. SetGameModeText("Blank Script");
  38. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  39. return 1;
  40. }
  41.  
  42. public OnGameModeExit()
  43. {
  44. return 1;
  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. ocmd:cmenu(playerid,params[])
  91. {
  92. ShowPlayerDialog(playerid,DIALOG_CMENU,DIALOG_STYLE_LIST,"Fahrzeuge","Auto\nBike\nBoot\nTruck\nFlugzeuge\nHelikopter","Auswählen","Abbrechen");
  93. return;
  94. }
  95.  
  96. public OnPlayerCommandText(playerid, cmdtext[])
  97. {
  98. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  99. {
  100. return 0;
  101. }
  102. return 0;
  103. }
  104.  
  105. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerExitVehicle(playerid, vehicleid)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerStateChange(playerid, newstate, oldstate)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerEnterCheckpoint(playerid)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerLeaveCheckpoint(playerid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerEnterRaceCheckpoint(playerid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerLeaveRaceCheckpoint(playerid)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnRconCommand(cmd[])
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnPlayerRequestSpawn(playerid)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnObjectMoved(objectid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnPlayerObjectMoved(playerid, objectid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerPickUpPickup(playerid, pickupid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnVehicleMod(playerid, vehicleid, componentid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnPlayerSelectedMenuRow(playerid, row)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerExitedMenu(playerid)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnRconLoginAttempt(ip[], password[], success)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnPlayerUpdate(playerid)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerStreamIn(playerid, forplayerid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerStreamOut(playerid, forplayerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnVehicleStreamIn(vehicleid, forplayerid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnVehicleStreamOut(vehicleid, forplayerid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  231. {
  232. if(dialogid == DIALOG_CMENU)
  233. if(response == 0)
  234. {
  235. SendClientMessage(playerid,0x870000FF,"Vorgang Abgebrochen!");
  236. return 1;
  237. }
  238. if(response == 1)
  239. {
  240. ShowPlayerDialog(playerid,DIALOG_AUTO,DIALOG_STYLE_LIST,"Auto","Infernus\nBullte\nSuper-GT\nSultan\nCheetha\nBF Injection\nBanshee\nHotknife\nTurismo\nComet\nSandking\nHotring Racer\nBandito\nGo-Kart","Auswählen","Abbrechen");
  241. }
  242. if(listitem == 1)
  243. {
  244. new Fload:x,Fload:y,Fload:z,Fload:rott;
  245. GetPlayerPos(playerid,x,y,z);
  246. GetPlayerFacingAngle(playerid,rott);
  247. CreateVehicle(411,x,y,z,rott+1,-1,-1,0);
  248. }
  249. if(listitem == 2)
  250. {
  251. new Fload:x,Fload:y,Fload:z,Fload:rott;
  252. GetPlayerPos(playerid,x,y,z);
  253. GetPlayerFacingAngle(playerid,rott);
  254. CreateVehicle(541,x,y,z,rott+1,-1,-1,0);
  255. }
  256. if(listitem == 3)
  257. {
  258. new Fload:x,Fload:y,Fload:z,Fload:rott;
  259. GetPlayerPos(playerid,x,y,z);
  260. GetPlayerFacingAngle(playerid,rott);
  261. CreateVehicle(506,x,y,z,rott+1,-1,-1,0);
  262. }
  263. if(listitem == 4)
  264. {
  265. new Fload:x,Fload:y,Fload:z,Fload:rott;
  266. GetPlayerPos(playerid,x,y,z);
  267. GetPlayerFacingAngle(playerid,rott);
  268. CreateVehicle(560,x,y,z,rott+1,-1,-1,0);
  269. }
  270. if(listitem == 5)
  271. {
  272. new Fload:x,Fload:y,Fload:z,Fload:rott;
  273. GetPlayerPos(playerid,x,y,z);
  274. GetPlayerFacingAngle(playerid,rott);
  275. CreateVehicle(415,x,y,z,rott+1,-1,-1,0);
  276. }
  277. if(listitem == 6)
  278. {
  279. new Fload:x,Fload:y,Fload:z,Fload:rott;
  280. GetPlayerPos(playerid,x,y,z);
  281. GetPlayerFacingAngle(playerid,rott);
  282. CreateVehicle(424,x,y,z,rott+1,-1,-1,0);
  283. }
  284. if(listitem == 7)
  285. {
  286. new Fload:x,Fload:y,Fload:z,Fload:rott;
  287. GetPlayerPos(playerid,x,y,z);
  288. GetPlayerFacingAngle(playerid,rott);
  289. CreateVehicle(429,x,y,z,rott+1,-1,-1,0);
  290. }
  291. if(listitem == 8)
  292. {
  293. new Fload:x,Fload:y,Fload:z,Fload:rott;
  294. GetPlayerPos(playerid,x,y,z);
  295. GetPlayerFacingAngle(playerid,rott);
  296. CreateVehicle(434,x,y,z,rott+1,-1,-1,0);
  297. }
  298. if(listitem == 9)
  299. {
  300. new Fload:x,Fload:y,Fload:z,Fload:rott;
  301. GetPlayerPos(playerid,x,y,z);
  302. GetPlayerFacingAngle(playerid,rott);
  303. CreateVehicle(451,x,y,z,rott+1,-1,-1,0);
  304. }
  305. if(listitem == 10)
  306. {
  307. new Fload:x,Fload:y,Fload:z,Fload:rott;
  308. GetPlayerPos(playerid,x,y,z);
  309. GetPlayerFacingAngle(playerid,rott);
  310. CreateVehicle(480,x,y,z,rott+1,-1,-1,0);
  311. }
  312. if(listitem == 11)
  313. {
  314. new Fload:x,Fload:y,Fload:z,Fload:rott;
  315. GetPlayerPos(playerid,x,y,z);
  316. GetPlayerFacingAngle(playerid,rott);
  317. CreateVehicle(495,x,y,z,rott+1,-1,-1,0);
  318. }
  319. if(listitem == 12)
  320. {
  321. new Fload:x,Fload:y,Fload:z,Fload:rott;
  322. GetPlayerPos(playerid,x,y,z);
  323. GetPlayerFacingAngle(playerid,rott);
  324. CreateVehicle(503,x,y,z,rott+1,-1,-1,0);
  325. }
  326. if(listitem == 13)
  327. {
  328. new Fload:x,Fload:y,Fload:z,Fload:rott;
  329. GetPlayerPos(playerid,x,y,z);
  330. GetPlayerFacingAngle(playerid,rott);
  331. CreateVehicle(568,x,y,z,rott+1,-1,-1,0);
  332. }
  333. if(listitem == 14)
  334. {
  335. new Fload:x,Fload:y,Fload:z,Fload:rott;
  336. GetPlayerPos(playerid,x,y,z);
  337. GetPlayerFacingAngle(playerid,rott);
  338. CreateVehicle(571,x,y,z,rott+1,-1,-1,0);
  339. }
  340.  
  341. return 1;
  342. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement