Guest User

Your Code

a guest
Mar 19th, 2015
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 4.06 KB | None | 0 0
  1. //My First Gamemode
  2. #include <a_samp>
  3.  
  4. //My System Colours
  5. #define COLOR_ORANGE 0xFFA500FF
  6. #define COLOR_LIMEGREEN 0x32CD32FF
  7. #define COLOR_ROYALBLUE 0x4169E1FF
  8. #define COLOR_SALMON 0xFA8072FF
  9. #define COLOR_GREY 0xAFAFAFAA
  10. #define COLOR_GREEN 0x33AA33AA
  11. #define COLOR_RED 0xAA3333AA
  12. #define COLOR_YELLOW 0xFFFF00AA
  13. #define COLOR_WHITE 0xFFFFFFAA
  14. #define COLOR_BLUE 0x0000BBAA
  15. #define COLOR_LIGHTBLUE 0x33CCFFAA
  16. #define COLOR_RED 0xAA3333AA
  17. main()
  18. {
  19. print("\n----------------------------------");
  20. print(" Blank Gamemode by your name here");
  21. print("----------------------------------\n");
  22. }
  23.  
  24. public OnGameModeInit()
  25. {
  26. // Don't use these lines if it's a filterscript
  27. SetGameModeText("Blank Script");
  28. AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  29. return 1;
  30. }
  31.  
  32. public OnGameModeExit()
  33. {
  34. return 1;
  35. }
  36.  
  37. public OnPlayerRequestClass(playerid, classid)
  38. {
  39. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  40. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  41. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  42. return 1;
  43. }
  44.  
  45. public OnPlayerConnect(playerid)
  46. {
  47. ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Select your class!", "Pilot \n Trucker", "Spawn", "Cancel");
  48. return 1;
  49. }
  50.  
  51. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  52. {
  53.     if(dialogid == 2)
  54.     {
  55.         if(!response) return 1;
  56.         if(listitem == 0)
  57.         {
  58.             SendClientMessage(playerid, -1, "You have spawned as a pilot!");
  59.             SetSpawnInfo(playerid, 0, 61, 1326.6730, 1502.4309, 14.7109, 269.15, 0, 0, 0, 0, 0, 0);
  60.             SpawnPlayer(playerid);
  61.         }
  62.         if(listitem == 1)
  63.         {
  64.             SendClientMessage(playerid, -1, "You have spawned as a trucker!");
  65.             SetSpawnInfo(playerid, 0, 72, -2105.3228, -124.2982, 37.2531, 269.15, 0, 0, 0, 0, 0, 0);
  66.             SpawnPlayer(playerid);
  67.         }
  68.     }
  69.     return 1;
  70. }
  71.  
  72. public OnPlayerDisconnect(playerid, reason)
  73. {
  74. return 1;
  75. }
  76.  
  77. public OnPlayerSpawn(playerid)
  78. {
  79. return 1;
  80. }
  81.  
  82. public OnPlayerDeath(playerid, killerid, reason)
  83. {
  84. return 1;
  85. }
  86.  
  87. public OnVehicleSpawn(vehicleid)
  88. {
  89. return 1;
  90. }
  91.  
  92. public OnVehicleDeath(vehicleid, killerid)
  93. {
  94. return 1;
  95. }
  96.  
  97. public OnPlayerText(playerid, text[])
  98. {
  99. return 1;
  100. }
  101.  
  102. public OnPlayerCommandText(playerid, cmdtext[])
  103. {
  104. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  105. {
  106. // Do something here
  107. return 1;
  108. }
  109. return 0;
  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 OnPlayerClickPlayer(playerid, clickedplayerid, source)
  238. {
  239. return 1;
  240. }
Advertisement
Add Comment
Please, Sign In to add comment