Advertisement
Guest User

Error

a guest
Mar 2nd, 2013
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.98 KB | None | 0 0
  1. #include <a_samp>
  2. #define COLOR_GREY 0xAFAFAFAA
  3. #define COLOR_GREEN 0x33AA33AA
  4. #define COLOR_BRIGHTRED 0xFF0000AA
  5. #define COLOR_YELLOW 0xFFFF00AA
  6. #define COLOR_PINK 0xFF66FFAA
  7. #define COLOR_BLUE 0x3A47DEFF
  8. #define COLOR_TAN 0xBDB76BAA
  9. #define COLOR_PURPLE 0x800080AA
  10. #define COLOR_WHITE 0xFFFFFFAA
  11. #define COLOR_LIGHTBLUE 0x33CCFFAA
  12. #define COLOR_ORANGE 0xFF9900AA
  13. #define COLOR_INDIGO 0x4B00B0AA
  14. #define COLOR_BLACK 0x00000000
  15. #define COLOR_DARKGREY 0x696969FF
  16.  
  17. main()
  18. {
  19.     print("\n----------------------------------");
  20.     print(" Testing Game mode");
  21.     print("----------------------------------\n");
  22. }
  23.  
  24.  
  25.  
  26. public OnGameModeInit()
  27. {
  28.     SetGameModeText("Testing game mode");
  29.     AddPlayerClass(0,2517.9846,-1674.4091,14.2211,70.8701,0,0,0,0,0,0); // Spawn
  30.     AddStaticVehicle(411,2498.7568,-1683.7266,13.1189,103.8696,106,1); // Infernus
  31.     AddPlayerClass(2,2466.6455,-1657.1151,13.2797,252.2684,0,0,0,0,0,0); // otherspawn
  32.     return 1;
  33. }
  34.  
  35. public OnGameModeExit()
  36. {
  37.     return 1;
  38. }
  39.  
  40. public OnPlayerRequestClass(playerid, classid)
  41. {
  42.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  43.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  44.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  45.     return 1;
  46. }
  47.  
  48. public OnPlayerConnect(playerid)
  49. {
  50.     SendClientMessage(playerid, COLOR_BLACK, "Welcome to test server"[]);
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerDisconnect(playerid, reason)
  55. {
  56.     return 1;
  57. }
  58.  
  59. public OnPlayerSpawn(playerid)
  60. {
  61.     return 1;
  62. }
  63.  
  64. public OnPlayerDeath(playerid, killerid, reason)
  65. {
  66.     return 1;
  67. }
  68.  
  69. public OnVehicleSpawn(vehicleid)
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnVehicleDeath(vehicleid, killerid)
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnPlayerText(playerid, text[])
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnPlayerCommandText(playerid, cmdtext[])
  85. {
  86.     if (strcmp("/test", cmdtext, true, 10) == 0)
  87.     {
  88.         SendClientMessage(playerid, COLOR_BLACK, "[BR]Yahya__"[]);
  89.         SendClientMessage(playerid, COLOR_BLACK, "[BR]Yahya__"[]);
  90.         return 1;
  91.     }
  92.     return 0;
  93. }
  94.  
  95. public OnPlayerCommandText(playerid, cmdtext[])
  96. {
  97.     if (strcmp("/fix", cmdtext, true, 10) == 0)
  98.     {
  99.         RepairVehicle(vehicleid);
  100.         return 1;
  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.     return 1;
  233. }
  234.  
  235. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  236. {
  237.     return 1;
  238. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement