Guest User

Jv

a guest
Mar 17th, 2011
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 4.57 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6.  
  7. #define BALLAS 0xFF00FFAA
  8. #define GROVE 0x00FF00AA
  9. #define team1 1
  10. #define team2 2
  11. #define COLOR_GREY 0xAFAFAFAA
  12. #define COLOR_GREEN 0x33AA33AA
  13. #define COLOR_BRIGHTRED 0xFF0000AA
  14. #define COLOR_YELLOW 0xFFFF00AA
  15. #define COLOR_PINK 0xFF66FFAA
  16. #define COLOR_BLUE 0x3A47DEFF
  17. #define COLOR_TAN 0xBDB76BAA
  18. #define COLOR_PURPLE 0x800080AA
  19. #define COLOR_WHITE 0xFFFFFFAA
  20. #define COLOR_LIGHTBLUE 0x33CCFFAA
  21. #define COLOR_ORANGE 0xFF9900AA
  22. #define COLOR_INDIGO 0x4B00B0AA
  23. #define COLOR_BLACK 0x00000000
  24. #define COLOR_DARKGREY 0x696969FF
  25.  
  26.  
  27. #if defined FILTERSCRIPT
  28. new team[MAX_PLAYERS];
  29.  
  30. public OnFilterScriptInit()
  31. {
  32.     print("\n--------------------------------------");
  33.     print(" Blank Filterscript by your name here");
  34.     print("--------------------------------------\n");
  35.     return 1;
  36. }
  37. }
  38. SetPlayerTeamFromClass(playerid, classid)
  39. {
  40.     if (classid == 0)
  41.     {
  42.         team[playerid] = team1;
  43.     }
  44.     else
  45.     {
  46.         team[playerid] = team2;
  47.     }
  48. }
  49.  
  50. SetPlayerToTeamToColor(playerid)
  51. {
  52.     if (team[playerid] == team1)
  53.     {
  54.         SetPlayerColor(playerid, GROVE);
  55.     }
  56.     else if (team[playerid] == team2)
  57.     {
  58.         SetPlayerColor(playerid, BALLAS);
  59.      }
  60.  }
  61. public OnFilterScriptExit()
  62. {
  63.     return 1;
  64. }
  65.  
  66. #else
  67.  
  68. main()
  69. {
  70.     print("\n----------------------------------");
  71.     print(" Hudgens Team Deathmatch!");
  72.     print("----------------------------------\n");
  73. }
  74.  
  75. #endif
  76.  
  77. public OnGameModeInit()
  78. {
  79.     // Don't use these lines if it's a filterscript
  80.     SetGameModeText("HTDM");
  81.     AddPlayerClass(105,2311.3455,-1658.9199,14.2456,270.2288,24,100,29,300,0,0); // Grove
  82.     AddPlayerClass(106,2311.3455,-1658.9199,14.2456,270.2288,32,300,22,150,0,0); // Grove
  83.     return 1;
  84. }
  85.  
  86. public OnGameModeExit()
  87. {
  88.     return 1;
  89. }
  90.  
  91. public OnPlayerRequestClass(playerid, classid)
  92. {
  93.  
  94.     SetPlayerFromTeamToClass(playerid, classid);
  95.     SetPlayerPos(playerid, 11449.5397,-807.4916,84.2771);
  96.     SetPlayerCameraPos(playerid, 1455.1418,-825.0184,83.1046);
  97.     SetPlayerCameraLookAt(playerid, 1449.5397,-807.4916,84.2771);
  98.     return 1;
  99. }
  100.  
  101. public OnPlayerConnect(playerid)
  102. {
  103.    
  104.     return 1;
  105. }
  106.  
  107. public OnPlayerDisconnect(playerid, reason)
  108. {
  109.  
  110.     return 1;
  111. }
  112.  
  113. public OnPlayerSpawn(playerid)
  114. {
  115.  
  116.     SetPlayerToTeamColor(playerid);
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerDeath(playerid, killerid, reason)
  121. {
  122.  
  123.     return 1;
  124. }
  125.  
  126. public OnVehicleSpawn(vehicleid)
  127. {
  128.     return 1;
  129. }
  130.  
  131. public OnVehicleDeath(vehicleid, killerid)
  132. {
  133.     return 1;
  134. }
  135.  
  136. public OnPlayerText(playerid, text[])
  137. {
  138.     return 1;
  139. }
  140.  
  141. public OnPlayerCommandText(playerid, cmdtext[])
  142. {
  143.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  144.     {
  145.         // Do something here
  146.         return 1;
  147.     }
  148.     return 0;
  149. }
  150.  
  151. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  152. {
  153.     return 1;
  154. }
  155.  
  156. public OnPlayerExitVehicle(playerid, vehicleid)
  157. {
  158.     return 1;
  159. }
  160.  
  161. public OnPlayerStateChange(playerid, newstate, oldstate)
  162. {
  163.     return 1;
  164. }
  165.  
  166. public OnPlayerEnterCheckpoint(playerid)
  167. {
  168.     return 1;
  169. }
  170.  
  171. public OnPlayerLeaveCheckpoint(playerid)
  172. {
  173.     return 1;
  174. }
  175.  
  176. public OnPlayerEnterRaceCheckpoint(playerid)
  177. {
  178.     return 1;
  179. }
  180.  
  181. public OnPlayerLeaveRaceCheckpoint(playerid)
  182. {
  183.     return 1;
  184. }
  185.  
  186. public OnRconCommand(cmd[])
  187. {
  188.     return 1;
  189. }
  190.  
  191. public OnPlayerRequestSpawn(playerid)
  192. {
  193.     return 1;
  194. }
  195.  
  196. public OnObjectMoved(objectid)
  197. {
  198.     return 1;
  199. }
  200.  
  201. public OnPlayerObjectMoved(playerid, objectid)
  202. {
  203.     return 1;
  204. }
  205.  
  206. public OnPlayerPickUpPickup(playerid, pickupid)
  207. {
  208.     return 1;
  209. }
  210.  
  211. public OnVehicleMod(playerid, vehicleid, componentid)
  212. {
  213.     return 1;
  214. }
  215.  
  216. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  217. {
  218.     return 1;
  219. }
  220.  
  221. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  222. {
  223.     return 1;
  224. }
  225.  
  226. public OnPlayerSelectedMenuRow(playerid, row)
  227. {
  228.     return 1;
  229. }
  230.  
  231. public OnPlayerExitedMenu(playerid)
  232. {
  233.     return 1;
  234. }
  235.  
  236. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  237. {
  238.     return 1;
  239. }
  240.  
  241. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  242. {
  243.     return 1;
  244. }
  245.  
  246. public OnRconLoginAttempt(ip[], password[], success)
  247. {
  248.     return 1;
  249. }
  250.  
  251. public OnPlayerUpdate(playerid)
  252. {
  253.     return 1;
  254. }
  255.  
  256. public OnPlayerStreamIn(playerid, forplayerid)
  257. {
  258.     return 1;
  259. }
  260.  
  261. public OnPlayerStreamOut(playerid, forplayerid)
  262. {
  263.     return 1;
  264. }
  265.  
  266. public OnVehicleStreamIn(vehicleid, forplayerid)
  267. {
  268.     return 1;
  269. }
  270.  
  271. public OnVehicleStreamOut(vehicleid, forplayerid)
  272. {
  273.     return 1;
  274. }
  275.  
  276. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  277. {
  278.     return 1;
  279. }
  280.  
  281. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  282. {
  283.     return 1;
Advertisement
Add Comment
Please, Sign In to add comment