Guest User

hereugo

a guest
Jun 20th, 2015
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.67 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3.  
  4. #include <a_samp>
  5. new gTeam[MAX_PLAYERS];
  6. new stats = 22;
  7.  
  8. main()
  9. {
  10. print("\n----------------------------------");
  11. print(" Blank Gamemode by your name here");
  12. print("----------------------------------\n");
  13. }
  14.  
  15.  
  16. public OnGameModeInit()
  17. {
  18. // Don't use these lines if it's a filterscript
  19. SetGameModeText("Blank Script");
  20. AddPlayerClass(163, 1963.3783, 1342.1572, 16.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  21. AddPlayerClass(164, 1963.3783, 1342.1572, 16.3746, 269.1425, 0, 0, 0, 0, 0, 0);
  22. return 1;
  23. }
  24.  
  25. public OnGameModeExit()
  26. {
  27. return 1;
  28. }
  29.  
  30. public OnPlayerRequestClass(playerid, classid)
  31. {
  32. SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  33. SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  34. SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  35. SetPlayerTeamFromClass(playerid,classid);
  36. return 1;
  37. }
  38.  
  39. SetPlayerTeamFromClass(playerid, classid)
  40. {
  41. if(classid == 1 || classid == 2)
  42. {
  43. gTeam[playerid] = 9;
  44. }
  45. return 1;
  46. }
  47.  
  48.  
  49. public OnPlayerConnect(playerid)
  50. {
  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("/mycommand", cmdtext, true, 10) == 0)
  87. {
  88. // Do something here
  89. return 1;
  90. }
  91. return 0;
  92. }
  93.  
  94. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  95. {
  96. return 1;
  97. }
  98.  
  99. public OnPlayerExitVehicle(playerid, vehicleid)
  100. {
  101. return 1;
  102. }
  103.  
  104. public OnPlayerStateChange(playerid, newstate, oldstate)
  105. {
  106. return 1;
  107. }
  108.  
  109. public OnPlayerEnterCheckpoint(playerid)
  110. {
  111. return 1;
  112. }
  113.  
  114. public OnPlayerLeaveCheckpoint(playerid)
  115. {
  116. return 1;
  117. }
  118.  
  119. public OnPlayerEnterRaceCheckpoint(playerid)
  120. {
  121. return 1;
  122. }
  123.  
  124. public OnPlayerLeaveRaceCheckpoint(playerid)
  125. {
  126. return 1;
  127. }
  128.  
  129. public OnRconCommand(cmd[])
  130. {
  131. return 1;
  132. }
  133.  
  134. public OnPlayerRequestSpawn(playerid)
  135. {
  136. if(gTeam[playerid] == 9)
  137. {
  138. if(stats < 5000)
  139. {
  140. SendClientMessage(playerid, -1, "[ Server ] You do not have enough points to play guarder!");
  141. return 0;
  142. }
  143. }
  144. return 1;
  145. }
  146.  
  147. public OnObjectMoved(objectid)
  148. {
  149. return 1;
  150. }
  151.  
  152. public OnPlayerObjectMoved(playerid, objectid)
  153. {
  154. return 1;
  155. }
  156.  
  157. public OnPlayerPickUpPickup(playerid, pickupid)
  158. {
  159. return 1;
  160. }
  161.  
  162. public OnVehicleMod(playerid, vehicleid, componentid)
  163. {
  164. return 1;
  165. }
  166.  
  167. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  168. {
  169. return 1;
  170. }
  171.  
  172. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  173. {
  174. return 1;
  175. }
  176.  
  177. public OnPlayerSelectedMenuRow(playerid, row)
  178. {
  179. return 1;
  180. }
  181.  
  182. public OnPlayerExitedMenu(playerid)
  183. {
  184. return 1;
  185. }
  186.  
  187. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  188. {
  189. return 1;
  190. }
  191.  
  192. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  193. {
  194. return 1;
  195. }
  196.  
  197. public OnRconLoginAttempt(ip[], password[], success)
  198. {
  199. return 1;
  200. }
  201.  
  202. public OnPlayerUpdate(playerid)
  203. {
  204. return 1;
  205. }
  206.  
  207. public OnPlayerStreamIn(playerid, forplayerid)
  208. {
  209. return 1;
  210. }
  211.  
  212. public OnPlayerStreamOut(playerid, forplayerid)
  213. {
  214. return 1;
  215. }
  216.  
  217. public OnVehicleStreamIn(vehicleid, forplayerid)
  218. {
  219. return 1;
  220. }
  221.  
  222. public OnVehicleStreamOut(vehicleid, forplayerid)
  223. {
  224. return 1;
  225. }
  226.  
  227. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  228. {
  229. return 1;
  230. }
  231.  
  232. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  233. {
  234. return 1;
  235. }
Advertisement
Add Comment
Please, Sign In to add comment