KaLu17

gamemode by Borek

Nov 7th, 2014
256
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.27 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define Niebieski 0x0005FFFF
  4. #define Zolty 0xF5FF00FF
  5.  
  6. new Text:Powitanie;
  7. new Text:TDKierowca;
  8. main()
  9. {
  10. print("\n----------------------------------");
  11. print(" Tom Mape Stwożył BoreK");
  12. print("----------------------------------\n");
  13. }
  14.  
  15. public OnGameModeInit()
  16. {
  17. SetGameModeText("WersjaV0.1");
  18.     AddPlayerClass(0, 1373.8613,1018.9051, 10.8203, 256.9731, 0, 0, 0, 0, 0, 0); //Kierowca
  19.     AddPlayerClass(1, 1373.8613,1018.9051, 10.8203, 256.9731, 0, 0, 0, 0, 0, 0);
  20.     AddPlayerClass(2, 1373.8613,1018.9051, 10.8203, 256.9731, 0, 0, 0, 0, 0, 0);
  21.  
  22. //TextDrawy
  23. Powitanie = TextDrawCreate(200, 200,"Witamy Na Serwerze          PUT");
  24. TextDrawColor (Powitanie, Zolty);
  25. TextDrawFont (Powitanie, 1);
  26. TextDrawSetOutline (Powitanie, 1);
  27. TextDrawSetProportional (Powitanie, true);
  28.     TextDrawLetterSize (Powitanie, 1,1);
  29.  
  30.     TDKierowca = TextDrawCreate(190, 500,"Kierowca");
  31. TextDrawColor (TDKierowca, Niebieski);
  32. TextDrawFont (TDKierowca, 1);
  33. TextDrawSetOutline (TDKierowca, 1);
  34. TextDrawSetProportional (TDKierowca, true);
  35.     TextDrawLetterSize (TDKierowca, 1,1);
  36. return 1;
  37. }
  38.  
  39. public OnGameModeExit()
  40. {
  41. return 1;
  42. }
  43.  
  44. public OnPlayerRequestClass(playerid, classid)
  45. {
  46. SetPlayerPos(playerid, 1707.3192,1024.6077,10.8203);
  47. SetPlayerFacingAngle(playerid, 128.1414);
  48. SetPlayerCameraPos(playerid, 1702.8170,1022.9649,10.8203);
  49. SetPlayerCameraLookAt(playerid, 1707.3192,1024.6077,10.8203);
  50. if (classid == 0 || classid == 1 || classid == 2 ||)//Kierowcy
  51. {
  52.     TextDrawShowForPlayer(playerid, TDKierowca);
  53.    return 1;
  54.    
  55. }
  56. return 1;
  57. }
  58.  
  59. public OnPlayerConnect(playerid)
  60. {
  61. TextDrawShowForPlayer (playerid, Powitanie);
  62. TextDrawHideForPlayer (playerid, TDKierowca);
  63. return 1;
  64. }
  65.  
  66. public OnPlayerDisconnect(playerid, reason)
  67. {
  68. TextDrawShowForPlayer (playerid, Powitanie);
  69.     TextDrawHideForPlayer (playerid, TDKierowca);
  70. return 1;
  71. }
  72.  
  73. public OnPlayerSpawn(playerid)
  74. {
  75.     TextDrawShowForPlayer (playerid, Powitanie);
  76.     TextDrawHideForPlayer (playerid, TDKierowca);
  77. return 1;
  78. }
  79.  
  80. public OnPlayerDeath(playerid, killerid, reason)
  81. {
  82. return 1;
  83. }
  84.  
  85. public OnVehicleSpawn(vehicleid)
  86. {
  87. return 1;
  88. }
  89.  
  90. public OnVehicleDeath(vehicleid, killerid)
  91. {
  92. return 1;
  93. }
  94.  
  95. public OnPlayerText(playerid, text[])
  96. {
  97. return 1;
  98. }
  99.  
  100. public OnPlayerCommandText(playerid, cmdtext[])
  101. {
  102. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  103. {
  104. // Do something here
  105. return 1;
  106. }
  107. return 0;
  108. }
  109.  
  110. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerExitVehicle(playerid, vehicleid)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerStateChange(playerid, newstate, oldstate)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerEnterCheckpoint(playerid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerLeaveCheckpoint(playerid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnPlayerEnterRaceCheckpoint(playerid)
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerLeaveRaceCheckpoint(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnRconCommand(cmd[])
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerRequestSpawn(playerid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnObjectMoved(objectid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerObjectMoved(playerid, objectid)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerPickUpPickup(playerid, pickupid)
  166. {
  167. return 1;
  168. }
  169.  
  170. public OnVehicleMod(playerid, vehicleid, componentid)
  171. {
  172. return 1;
  173. }
  174.  
  175. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  176. {
  177. return 1;
  178. }
  179.  
  180. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  181. {
  182. return 1;
  183. }
  184.  
  185. public OnPlayerSelectedMenuRow(playerid, row)
  186. {
  187. return 1;
  188. }
  189.  
  190. public OnPlayerExitedMenu(playerid)
  191. {
  192. return 1;
  193. }
  194.  
  195. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  196. {
  197. return 1;
  198. }
  199.  
  200. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  201. {
  202. return 1;
  203. }
  204.  
  205. public OnRconLoginAttempt(ip[], password[], success)
  206. {
  207. return 1;
  208. }
  209.  
  210. public OnPlayerUpdate(playerid)
  211. {
  212. return 1;
  213. }
  214.  
  215. public OnPlayerStreamIn(playerid, forplayerid)
  216. {
  217. return 1;
  218. }
  219.  
  220. public OnPlayerStreamOut(playerid, forplayerid)
  221. {
  222. return 1;
  223. }
  224.  
  225. public OnVehicleStreamIn(vehicleid, forplayerid)
  226. {
  227. return 1;
  228. }
  229.  
  230. public OnVehicleStreamOut(vehicleid, forplayerid)
  231. {
  232. return 1;
  233. }
  234.  
  235. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  236. {
  237. return 1;
  238. }
  239.  
  240. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  241. {
  242. return 1;
  243. }
Advertisement
Add Comment
Please, Sign In to add comment