Guest User

fixed

a guest
Jan 18th, 2012
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.80 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. #define TEAM_GROVE 1
  7. #define TEAM_BALLAS 2
  8. #define TEAM_VAGOS 3
  9. #define FILTERSCRIPT
  10.  
  11. enum eZone
  12. {
  13.     Float:zMinX,
  14.     Float:zMinY,
  15.     Float:zMaxX,
  16.     Float:zMaxY,
  17.     zTeam
  18. }
  19. new ZoneInfo[][eZone] = {
  20.     {2337.9004,-1808.8383,2590.2043,-1610.3673,TEAM_GROVE},
  21.     {2084.7,-1808.8383,2337.9004,-1610.3673,TEAM_BALLAS},
  22.     {2590.2043,-1808.8383,2842.3,-1610.3673,TEAM_VAGOS}
  23. };
  24. new ZoneID[sizeof(ZoneInfo)];
  25.  
  26. public OnFilterScriptInit()
  27. for(new i=0; i < sizeof(ZoneInfo); i++)
  28. {
  29.     ZoneID[i] = GangZoneCreate(ZoneInfo[i][zMinX], ZoneInfo[i][zMinY], ZoneInfo[i][zMaxX], ZoneInfo[i][zMaxY]);
  30. }
  31.  
  32. public OnFilterScriptExit()
  33. {
  34.     return 1;
  35. }
  36. public OnPlayerRequestClass(playerid, classid)
  37. {
  38.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  39.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  40.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  41.     return 1;
  42. }
  43.  
  44. public OnPlayerConnect(playerid)
  45. {
  46.     return 1;
  47. }
  48.  
  49. public OnPlayerDisconnect(playerid, reason)
  50. {
  51.     return 1;
  52. }
  53.  
  54. public OnPlayerSpawn(playerid)
  55. {
  56. for(new i=0; i < sizeof(ZoneInfo); i++)
  57. {
  58.     GangZoneShowForPlayer(playerid, ZoneID[i], GetTeamZoneColor(ZoneInfo[i][zTeam]));
  59. }
  60. return 1;
  61. }
  62.  
  63. stock GetTeamZoneColor(teamid)
  64. {
  65.     switch(teamid)
  66.     {
  67.         case TEAM_GROVE: return 0x00FF0088;
  68.         case TEAM_BALLAS: return 0xFF00FF88;
  69.         case TEAM_VAGOS: return 0xFFFF0088;
  70.     }
  71.     return -1;
  72. }
  73.  
  74. public OnPlayerDeath(playerid, killerid, reason)
  75. {
  76.     return 1;
  77. }
  78.  
  79. public OnVehicleSpawn(vehicleid)
  80. {
  81.     return 1;
  82. }
  83.  
  84. public OnVehicleDeath(vehicleid, killerid)
  85. {
  86.     return 1;
  87. }
  88.  
  89. public OnPlayerText(playerid, text[])
  90. {
  91.     return 1;
  92. }
  93.  
  94. public OnPlayerCommandText(playerid, cmdtext[])
  95. {
  96.     if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  97.     {
  98.         // Do something here
  99.         return 1;
  100.     }
  101.     return 0;
  102. }
  103.  
  104. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  105. {
  106.     return 1;
  107. }
  108.  
  109. public OnPlayerExitVehicle(playerid, vehicleid)
  110. {
  111.     return 1;
  112. }
  113.  
  114. public OnPlayerStateChange(playerid, newstate, oldstate)
  115. {
  116.     return 1;
  117. }
  118.  
  119. public OnPlayerEnterCheckpoint(playerid)
  120. {
  121.     return 1;
  122. }
  123.  
  124. public OnPlayerLeaveCheckpoint(playerid)
  125. {
  126.     return 1;
  127. }
  128.  
  129. public OnPlayerEnterRaceCheckpoint(playerid)
  130. {
  131.     return 1;
  132. }
  133.  
  134. public OnPlayerLeaveRaceCheckpoint(playerid)
  135. {
  136.     return 1;
  137. }
  138.  
  139. public OnRconCommand(cmd[])
  140. {
  141.     return 1;
  142. }
  143.  
  144. public OnPlayerRequestSpawn(playerid)
  145. {
  146.     return 1;
  147. }
  148.  
  149. public OnObjectMoved(objectid)
  150. {
  151.     return 1;
  152. }
  153.  
  154. public OnPlayerObjectMoved(playerid, objectid)
  155. {
  156.     return 1;
  157. }
  158.  
  159. public OnPlayerPickUpPickup(playerid, pickupid)
  160. {
  161.     return 1;
  162. }
  163.  
  164. public OnVehicleMod(playerid, vehicleid, componentid)
  165. {
  166.     return 1;
  167. }
  168.  
  169. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  170. {
  171.     return 1;
  172. }
  173.  
  174. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  175. {
  176.     return 1;
  177. }
  178.  
  179. public OnPlayerSelectedMenuRow(playerid, row)
  180. {
  181.     return 1;
  182. }
  183.  
  184. public OnPlayerExitedMenu(playerid)
  185. {
  186.     return 1;
  187. }
  188.  
  189. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  190. {
  191.     return 1;
  192. }
  193.  
  194. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  195. {
  196.     return 1;
  197. }
  198.  
  199. public OnRconLoginAttempt(ip[], password[], success)
  200. {
  201.     return 1;
  202. }
  203.  
  204. public OnPlayerUpdate(playerid)
  205. {
  206.     return 1;
  207. }
  208.  
  209. public OnPlayerStreamIn(playerid, forplayerid)
  210. {
  211.     return 1;
  212. }
  213.  
  214. public OnPlayerStreamOut(playerid, forplayerid)
  215. {
  216.     return 1;
  217. }
  218.  
  219. public OnVehicleStreamIn(vehicleid, forplayerid)
  220. {
  221.     return 1;
  222. }
  223.  
  224. public OnVehicleStreamOut(vehicleid, forplayerid)
  225. {
  226.     return 1;
  227. }
  228.  
  229. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  230. {
  231.     return 1;
  232. }
  233.  
  234. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  235. {
  236.     return 1;
  237. }
Advertisement
Add Comment
Please, Sign In to add comment