Advertisement
Guest User

TEST

a guest
May 28th, 2012
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 3.50 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #if defined FILTERSCRIPT
  4.  
  5. public OnFilterScriptInit()
  6. {
  7.     print("\n--------------------------------------");
  8.     print(" Filter Script made by Rafay");
  9.     print("--------------------------------------\n");
  10.     return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15.     return 1;
  16. }
  17.  
  18. #else
  19.  
  20. main()
  21. {
  22.     print("\n----------------------------------");
  23.     print(" Filter Script ");
  24.     print("----------------------------------\n");
  25. }
  26.     #endif
  27.    
  28. //colors
  29.  
  30.     #define COLOR_GREY 0xAFAFAFAA
  31.     #define COLOR_GREEN 0x33AA33AA
  32.     #define COLOR_BRIGHTRED 0xFF0000AA
  33.     #define COLOR_YELLOW 0xFFFF00AA
  34.     #define COLOR_PINK 0xFF66FFAA
  35.     #define COLOR_BLUE 0x3A47DEFF
  36.     #define COLOR_TAN 0xBDB76BAA
  37.     #define COLOR_PURPLE 0x800080AA
  38.     #define COLOR_WHITE 0xFFFFFFAA
  39.     #define COLOR_LIGHTBLUE 0x33CCFFAA
  40.     #define COLOR_ORANGE 0xFF9900AA
  41.     #define COLOR_INDIGO 0x4B00B0AA
  42.     #define COLOR_BLACK 0x00000000
  43.     #define COLOR_DARKGREY 0x696969FF
  44.  
  45. public OnGameModeInit()
  46. {
  47.     //misc
  48.     SetGameModeText("DM");
  49.  
  50.     //Classes
  51.     AddPlayerClass(101,2139.5029,33.5467,26.4291,262.6727,0,0,0,0,0,0); // PlayerSpawn1
  52.     AddPlayerClass(299,2599.7715,50.1040,26.4182,88.3613,0,0,0,0,0,0); // PlayerSpawn2
  53.     AddPlayerClass(101,2593.9355,34.4880,26.3964,274.4831,0,0,0,0,0,0); // PlayerSpawn3
  54.     AddPlayerClass(299,2171.7297,49.4693,26.4169,88.8128,0,0,0,0,0,0); // PlayerSpawn4
  55.  
  56.     //Cars
  57.     AddStaticVehicle(470,2281.1860,-50.2580,27.0087,1.7307,43,0); // Patriot
  58.     AddStaticVehicle(595,2097.2932,-104.4934,0.2480,34.8415,112,20); // Boat
  59.     AddStaticVehicle(428,2279.3306,-1.7544,27.5007,179.5603,4,75); // SecurityCar
  60.     AddStaticVehicle(415,2240.2947,-12.1523,26.7341,179.4432,40,1); // Cheeta
  61.     AddStaticVehicle(437,2261.1057,26.5232,26.5613,0.0001,98,20); // Bus
  62.     AddStaticVehicle(455,2246.3855,28.6309,26.8565,1.0395,77,31); // Truck(Army)
  63.     AddStaticVehicle(444,2273.1423,27.1094,26.8223,359.8596,32,36); // Mosnter
  64.     AddStaticVehicle(451,2288.9788,-8.9069,26.1158,181.8176,18,18); // Turismo
  65.  
  66.     return 1;
  67. }
  68.  
  69. public OnGameModeExit()
  70. {
  71.     return 1;
  72. }
  73.  
  74. public OnPlayerRequestClass(playerid, classid)
  75. {
  76.     SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
  77.     SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
  78.     SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
  79.     return 1;
  80. }
  81.  
  82. public OnPlayerConnect(playerid)
  83. {
  84.     SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:Hello,Welcome to our server.");
  85.     return 1;
  86. }
  87.  
  88. public OnPlayerDisconnect(playerid, reason)
  89. {
  90.     return 1;
  91. }
  92.  
  93. public OnPlayerSpawn(playerid)
  94. {
  95.     return 1;
  96. }
  97.  
  98. public OnPlayerDeath(playerid, killerid, reason)
  99. {
  100.     SendClientMessage(playerid, COLOR_BLACK , "[SERVER]:You are killed now you will be spawned on spwan point.");
  101.  
  102.     AddPlayerClass(101,2139.5029,33.5467,26.4291,262.6727,0,0,0,0,0,0); // RePlayerSpawn1
  103.     AddPlayerClass(299,2599.7715,50.1040,26.4182,88.3613,0,0,0,0,0,0); // RePlayerSpawn2
  104.     AddPlayerClass(101,2593.9355,34.4880,26.3964,274.4831,0,0,0,0,0,0); // RePlayerSpawn3
  105.     AddPlayerClass(299,2171.7297,49.4693,26.4169,88.8128,0,0,0,0,0,0); // RePlayerSpawn4
  106.  
  107.     return 1;
  108. }
  109.  
  110. public OnVehicleSpawn(vehicleid)
  111. {
  112.     return 1;
  113. }
  114.  
  115. public OnVehicleDeath(vehicleid, killerid)
  116. {
  117.     return 1;
  118. }
  119.  
  120. public OnPlayerText(playerid, text[])
  121. {
  122.     return 1;
  123. }
  124.  
  125. public OnPlayerCommandText(playerid, cmdtext[])
  126. {
  127.     if (strcmp("/Goto Ammu", cmdtext, true, 10) == 0)
  128.     {
  129.         SetPlayerPos(playerid,2337.8940,63.3127,26.4791); //Palamino Ammunation
  130.         SendClientMessage(playerid, COLOR_BLUE , "[SERVER]:You have been teleported to Palamino Creek Ammunation");
  131.  
  132.     }
  133.     return 0;
  134. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement