Advertisement
Guest User

filter

a guest
Oct 7th, 2011
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.19 KB | None | 0 0
  1. /* Army VS Terriost simple TDM filterscript which consists of two teams Army And Terriosts army are green terriosts red
  2. the objective is simple capture the other teams money bag and take it to your base i dont mind you using this
  3. filterscript but you must keep all credits */
  4. #define FILTERSCRIPT
  5.  
  6. #include <a_samp>
  7.  
  8. //defines for the teams
  9.  
  10. #define TEAM_ARMY 1
  11. #define TEAM_TERRORIST 2
  12. #define COLOR_TERRORIST 0xB30404FF
  13. #define COLOR_ARMY 0x005701FF
  14. new gTeam[MAX_PLAYERS];
  15. forward MyTimer();
  16. public OnFilterScriptInit()
  17. {
  18. print("\n--------------------------------------");
  19. print(" Army Vs Terriosts");
  20. print("--------------------------------------\n");
  21. SetTimer("MyTimer", 300000, 1);
  22. return 1;
  23. }
  24.  
  25. public OnFilterScriptExit()
  26. {
  27. return 1;
  28. }
  29. public MyTimer()
  30. {
  31. SendClientMessageToAll(0xFFFF00AA,"Round Up");
  32. }
  33.  
  34. public OnPlayerSpawn(playerid)
  35. {
  36. SetPlayerToTeamColor(playerid);
  37. return 1;
  38. }
  39. SetPlayerToTeamColor(playerid)
  40. {
  41. if (gTeam[playerid] == TEAM_ARMY)
  42. {
  43. SetPlayerColor(playerid, COLOR_ARMY);
  44. }
  45. else if (gTeam[playerid] == TEAM_TERRORIST)
  46. {
  47. SetPlayerColor(playerid, COLOR_TERRORIST);
  48. }
  49. }
  50. public OnPlayerDeath(playerid, killerid, reason)
  51. {
  52. GivePlayerMoney(killerid, 20000);
  53. SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  54. SetPlayerScore(playerid,GetPlayerScore(playerid)-1);
  55. return 1;
  56. }
  57.  
  58. public OnVehicleSpawn(vehicleid)
  59. {
  60. return 1;
  61. }
  62.  
  63. public OnVehicleDeath(vehicleid, killerid)
  64. {
  65. return 1;
  66. }
  67.  
  68. public OnPlayerText(playerid, text[])
  69. {
  70. return 1;
  71. }
  72.  
  73. public OnPlayerCommandText(playerid, cmdtext[])
  74. {
  75. if (strcmp("/army", cmdtext, true, 10) == 0)
  76. {
  77. SetPlayerTeam(playerid,TEAM_ARMY);
  78. SetPlayerInterior(playerid,3);
  79. SetPlayerPos(playerid,365.8573,204.6503,1008.3828);
  80. ResetPlayerWeapons(playerid);
  81. GivePlayerWeapon(playerid,31,15000);
  82. GivePlayerWeapon(playerid,29,15000);
  83. SetPlayerSkin(playerid,287);
  84. return 1;
  85. }
  86. if (strcmp("/terr", cmdtext, true, 10) == 0)
  87. {
  88. SetPlayerTeam(playerid,TEAM_TERRORIST);
  89. SetPlayerInterior(playerid,3);
  90. SetPlayerPos(playerid,362.2712,164.4167,1025.7891);
  91. ResetPlayerWeapons(playerid);
  92. GivePlayerWeapon(playerid,30,15000);
  93. GivePlayerWeapon(playerid,28,15000);
  94. SetPlayerSkin(playerid,124);
  95. return 1;
  96. }
  97. return 0;
  98. }
  99.  
  100. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  101. {
  102. return 1;
  103. }
  104.  
  105. public OnPlayerExitVehicle(playerid, vehicleid)
  106. {
  107. return 1;
  108. }
  109.  
  110. public OnPlayerStateChange(playerid, newstate, oldstate)
  111. {
  112. return 1;
  113. }
  114.  
  115. public OnPlayerEnterCheckpoint(playerid)
  116. {
  117. return 1;
  118. }
  119.  
  120. public OnPlayerLeaveCheckpoint(playerid)
  121. {
  122. return 1;
  123. }
  124.  
  125. public OnPlayerEnterRaceCheckpoint(playerid)
  126. {
  127. return 1;
  128. }
  129.  
  130. public OnPlayerLeaveRaceCheckpoint(playerid)
  131. {
  132. return 1;
  133. }
  134.  
  135. public OnRconCommand(cmd[])
  136. {
  137. return 1;
  138. }
  139.  
  140. public OnPlayerRequestSpawn(playerid)
  141. {
  142. return 1;
  143. }
  144.  
  145. public OnObjectMoved(objectid)
  146. {
  147. return 1;
  148. }
  149.  
  150. public OnPlayerObjectMoved(playerid, objectid)
  151. {
  152. return 1;
  153. }
  154.  
  155. public OnPlayerPickUpPickup(playerid, pickupid)
  156. {
  157. return 1;
  158. }
  159.  
  160. public OnPlayerSelectedMenuRow(playerid, row)
  161. {
  162. return 1;
  163. }
  164.  
  165. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  166. {
  167. return 1;
  168. }
  169.  
  170.  
  171.  
  172.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement