Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Filter Script made by Rafay");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Filter Script ");
- print("----------------------------------\n");
- }
- #endif
- //colors
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_BRIGHTRED 0xFF0000AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_BLUE 0x3A47DEFF
- #define COLOR_TAN 0xBDB76BAA
- #define COLOR_PURPLE 0x800080AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_BLACK 0x00000000
- #define COLOR_DARKGREY 0x696969FF
- public OnGameModeInit()
- {
- //misc
- SetGameModeText("DM");
- //Classes
- AddPlayerClass(101,2139.5029,33.5467,26.4291,262.6727,0,0,0,0,0,0); // PlayerSpawn1
- AddPlayerClass(299,2599.7715,50.1040,26.4182,88.3613,0,0,0,0,0,0); // PlayerSpawn2
- AddPlayerClass(101,2593.9355,34.4880,26.3964,274.4831,0,0,0,0,0,0); // PlayerSpawn3
- AddPlayerClass(299,2171.7297,49.4693,26.4169,88.8128,0,0,0,0,0,0); // PlayerSpawn4
- //Cars
- AddStaticVehicle(470,2281.1860,-50.2580,27.0087,1.7307,43,0); // Patriot
- AddStaticVehicle(595,2097.2932,-104.4934,0.2480,34.8415,112,20); // Boat
- AddStaticVehicle(428,2279.3306,-1.7544,27.5007,179.5603,4,75); // SecurityCar
- AddStaticVehicle(415,2240.2947,-12.1523,26.7341,179.4432,40,1); // Cheeta
- AddStaticVehicle(437,2261.1057,26.5232,26.5613,0.0001,98,20); // Bus
- AddStaticVehicle(455,2246.3855,28.6309,26.8565,1.0395,77,31); // Truck(Army)
- AddStaticVehicle(444,2273.1423,27.1094,26.8223,359.8596,32,36); // Mosnter
- AddStaticVehicle(451,2288.9788,-8.9069,26.1158,181.8176,18,18); // Turismo
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid, COLOR_YELLOW , "[SERVER]:Hello,Welcome to our server.");
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- SendClientMessage(playerid, COLOR_BLACK , "[SERVER]:You are killed now you will be spawned on spwan point.");
- AddPlayerClass(101,2139.5029,33.5467,26.4291,262.6727,0,0,0,0,0,0); // RePlayerSpawn1
- AddPlayerClass(299,2599.7715,50.1040,26.4182,88.3613,0,0,0,0,0,0); // RePlayerSpawn2
- AddPlayerClass(101,2593.9355,34.4880,26.3964,274.4831,0,0,0,0,0,0); // RePlayerSpawn3
- AddPlayerClass(299,2171.7297,49.4693,26.4169,88.8128,0,0,0,0,0,0); // RePlayerSpawn4
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/Goto Ammu", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid,2337.8940,63.3127,26.4791); //Palamino Ammunation
- SendClientMessage(playerid, COLOR_BLUE , "[SERVER]:You have been teleported to Palamino Creek Ammunation");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement