Advertisement
Guest User

fly

a guest
Oct 13th, 2012
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.14 KB | None | 0 0
  1.  
  2.  
  3. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  4. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
  5. //~~~~~~~000000~~~~~0~~~~~0~~~~~~~~000000~~~~0000000~~~~000000~~~~~0000000~~~~0~~~~~~~~~~~0~~~~0000000~~~~0000000~~~~~~~//
  6. //~~~~~~~0~~~~~0~~~~~0~~~0~~~~~~~~~0~~~~~0~~~~~~~~~0~~~~0~~~~~0~~~~0~~~~~~~~~~~0~~~~~~~~~0~~~~~0~~~~~~~~~~0~~~~~~~~~~~~~//
  7. //~~~~~~~0~~~~~0~~~~~~0~0~~~~~~~~~~0~~~~~0~~~~~~~~~0~~~~0~~~~~0~~~~0~~~~~~~~~~~~0~~~~~~~0~~~~~~0~~~~~~~~~~0~~~~~~~~~~~~~//
  8. //~~~~~~~000000~~~~~~~~0~~~~~~~~~~~0~~~~~0~~~~~~~~~0~~~~000000~~~~~0000000~~~~~~~0~~~~~0~~~~~~~0000000~~~~0000000~~~~~~~//
  9. //~~~~~~~0~~~~~0~~~~~~~0~~~~~~~~~~~0~~~~~0~~~~~~~~~0~~~~0~0~~~~~~~~0~~~~~~~~~~~~~~0~~~0~~~~~~~~0~~~~~~~~~~0~~~~~~~~~~~~~//
  10. //~~~~~~~0~~~~~0~~~~~~~0~~~~~~~~~~~0~~~~~0~~~0~~~~~0~~~~0~~0~~~~~~~0~~~~~~~~~~~~~~~0~0~~~~~~~~~0~~~~~~~~~~0~~~~~~~~~~~~~//
  11. //~~~~~~~000000~~~~~~~~0~~~~~~~~~~~000000~~~~~00000~~~~~0~~~0~~~~~~0000000~~~~~~~~~~0~~~~~~~~~~0000000~~~~0000000~~~~~~~//
  12. //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
  13. //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  14.  
  15. #include <a_samp>
  16. #define FLY_DIALOG 2000
  17. #define FLY_DIALOG_MESSAGE 2001
  18.  
  19. main()
  20. {
  21.     print("\n----------------------------------");
  22.     print(" Blank Gamemode by your name here");
  23.     print("----------------------------------\n");
  24. }
  25.  
  26. public OnGameModeInit()
  27. {
  28.     return 1;
  29. }
  30.  
  31. public OnGameModeExit()
  32. {
  33.     return 1;
  34. }
  35.  
  36. public OnPlayerRequestClass(playerid, classid)
  37. {
  38.     return 1;
  39. }
  40.  
  41. public OnPlayerConnect(playerid)
  42. {
  43.     return 1;
  44. }
  45.  
  46. public OnPlayerDisconnect(playerid, reason)
  47. {
  48.     return 1;
  49. }
  50.  
  51. public OnPlayerSpawn(playerid)
  52. {
  53.     return 1;
  54. }
  55.  
  56. public OnPlayerDeath(playerid, killerid, reason)
  57. {
  58.     return 1;
  59. }
  60.  
  61. public OnVehicleSpawn(vehicleid)
  62. {
  63.     return 1;
  64. }
  65.  
  66. public OnVehicleDeath(vehicleid, killerid)
  67. {
  68.     return 1;
  69. }
  70.  
  71. public OnPlayerText(playerid, text[])
  72. {
  73.     return 1;
  74. }
  75.  
  76. public OnPlayerCommandText(playerid, cmdtext[])
  77. {
  78.     if(strcmp(cmdtext,"/fly",true)==0)
  79.     {
  80.         ShowPlayerDialog(playerid,FLY_DIALOG_MESSAGE,DIALOG_STYLE_MSGBOX,"Fly mode","Dies ist ein FS von DjReven!\nMit diesen FS kannst du nich nach oben und\nnach unten Teleportieren.","Okay","");
  81.     }
  82.     return 0;
  83. }
  84.  
  85. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  86. {
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerExitVehicle(playerid, vehicleid)
  91. {
  92.     return 1;
  93. }
  94.  
  95. public OnPlayerStateChange(playerid, newstate, oldstate)
  96. {
  97.     return 1;
  98. }
  99.  
  100. public OnPlayerEnterCheckpoint(playerid)
  101. {
  102.     return 1;
  103. }
  104.  
  105. public OnPlayerLeaveCheckpoint(playerid)
  106. {
  107.     return 1;
  108. }
  109.  
  110. public OnPlayerEnterRaceCheckpoint(playerid)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnPlayerLeaveRaceCheckpoint(playerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnRconCommand(cmd[])
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerRequestSpawn(playerid)
  126. {
  127.     return 1;
  128. }
  129.  
  130. public OnObjectMoved(objectid)
  131. {
  132.     return 1;
  133. }
  134.  
  135. public OnPlayerObjectMoved(playerid, objectid)
  136. {
  137.     return 1;
  138. }
  139.  
  140. public OnPlayerPickUpPickup(playerid, pickupid)
  141. {
  142.     return 1;
  143. }
  144.  
  145. public OnVehicleMod(playerid, vehicleid, componentid)
  146. {
  147.     return 1;
  148. }
  149.  
  150. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  151. {
  152.     return 1;
  153. }
  154.  
  155. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  156. {
  157.     return 1;
  158. }
  159.  
  160. public OnPlayerSelectedMenuRow(playerid, row)
  161. {
  162.     return 1;
  163. }
  164.  
  165. public OnPlayerExitedMenu(playerid)
  166. {
  167.     return 1;
  168. }
  169.  
  170. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  171. {
  172.     return 1;
  173. }
  174.  
  175. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  176. {
  177.     return 1;
  178. }
  179.  
  180. public OnRconLoginAttempt(ip[], password[], success)
  181. {
  182.     return 1;
  183. }
  184.  
  185. public OnPlayerUpdate(playerid)
  186. {
  187.     return 1;
  188. }
  189.  
  190. public OnPlayerStreamIn(playerid, forplayerid)
  191. {
  192.     return 1;
  193. }
  194.  
  195. public OnPlayerStreamOut(playerid, forplayerid)
  196. {
  197.     return 1;
  198. }
  199.  
  200. public OnVehicleStreamIn(vehicleid, forplayerid)
  201. {
  202.     return 1;
  203. }
  204.  
  205. public OnVehicleStreamOut(vehicleid, forplayerid)
  206. {
  207.     return 1;
  208. }
  209.  
  210. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  211. {
  212.     if(dialogid==FLY_DIALOG_MESSAGE)
  213.     {
  214.         if(response)
  215.         {
  216.             ShowPlayerDialog(playerid,FLY_DIALOG,DIALOG_STYLE_LIST,"Fly mode","Hoch\nRunter\nVor\nZurück\nAbbrechen","Auswählen","");
  217.         }
  218.     }
  219.     if(dialogid==FLY_DIALOG)
  220.     {
  221.         if(listitem==0)
  222.         {
  223.             new Float:X, Float:Y, Float:Z;
  224.             new vehicleid;
  225.             GetPlayerPos(playerid,X,Y,Z);
  226.             SetPlayerPos(playerid,X,Y,Z+3);
  227.             SetVehiclePos(vehicleid,X,Y,Z+3);
  228.             PutPlayerInVehicle(playerid,vehicleid,0);
  229.             ShowPlayerDialog(playerid,FLY_DIALOG,DIALOG_STYLE_LIST,"Fly mode","Hoch\nRunter\nVor\nZurück\nAbbrechen","Auswählen","");
  230.         }
  231.         if(listitem==1)
  232.         {
  233.             new Float:X, Float:Y, Float:Z;
  234.             new vehicleid;
  235.             GetPlayerPos(playerid,X,Y,Z);
  236.             SetPlayerPos(playerid,X,Y,Z-3);
  237.             SetVehiclePos(vehicleid,X,Y,Z-3);
  238.             PutPlayerInVehicle(playerid,vehicleid,0);
  239.             ShowPlayerDialog(playerid,FLY_DIALOG,DIALOG_STYLE_LIST,"Fly mode","Hoch\nRunter\nVor\nZurück\nAbbrechen","Auswählen","");
  240.         }
  241.         if(listitem==2)
  242.         {
  243.             new Float:X, Float:Y, Float:Z;
  244.             new vehicleid;
  245.             GetPlayerPos(playerid,X,Y,Z);
  246.             SetPlayerPos(playerid,X+3,Y,Z);
  247.             SetVehiclePos(vehicleid,X+3,Y,Z);
  248.             PutPlayerInVehicle(playerid,vehicleid,0);
  249.             ShowPlayerDialog(playerid,FLY_DIALOG,DIALOG_STYLE_LIST,"Fly mode","Hoch\nRunter\nVor\nZurück\nAbbrechen","Auswählen","");
  250.         }
  251.         if(listitem==3)
  252.         {
  253.             new Float:X, Float:Y, Float:Z;
  254.             new vehicleid;
  255.             GetPlayerPos(playerid,X,Y,Z);
  256.             SetPlayerPos(playerid,X-3,Y,Z);
  257.             SetVehiclePos(vehicleid,X-3,Y,Z);
  258.             PutPlayerInVehicle(playerid,vehicleid,0);
  259.             ShowPlayerDialog(playerid,FLY_DIALOG,DIALOG_STYLE_LIST,"Fly mode","Hoch\nRunter\nVor\nZurück\nAbbrechen","Auswählen","");
  260.         }
  261.     }
  262.     return 1;
  263. }
  264.  
  265. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  266. {
  267.     return 1;
  268. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement