Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #define PRESSED(%0) \
- (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
- #define IsPlayerNotInVehicle(%0) (!IsPlayerInAnyVehicle(%0))
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Filterscript by w00tEpicz");
- print("--------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Gamemode by w00tEpicz");
- print("----------------------------------\n");
- return 1;
- }
- //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
- #endif
- public OnGameModeInit()
- { SetGameModeText("Freeroam");
- AddPlayerClass(0,1743.1095,-1860.4247,13.5788,0.0026,0,0,0,0,0,0); // spawn
- AddPlayerClass(0,1134.4661,-2036.5559,69.0078,270.1606,0,0,0,0,0,0); // GuySpawn2
- AddStaticVehicle(429,1758.2988,-1864.4330,13.2544,359.4778,161,0); // Banshee
- AddStaticVehicle(562,1763.5916,-1864.5226,13.2326,0.4114,0,0); // elegy
- AddStaticVehicle(482,1775.2999,-1863.8140,13.7004,2.1579,25,0); // Burrito
- AddStaticVehicle(487,1755.4773,-1842.2465,13.7483,177.7173,150,0); // Maverick
- AddStaticVehicle(562,1245.0746,-2011.4027,59.5093,269.5267,1,0); // elegy
- AddStaticVehicle(562,1244.9152,-2018.1968,59.5177,268.3148,0,0); // elegy
- AddStaticVehicle(562,1244.7279,-2025.7094,59.5230,268.6572,1,0); // elegy
- AddStaticVehicle(562,1244.7581,-2024.7617,59.5230,267.7292,0,0); // elegy
- AddStaticVehicle(562,1244.9010,-2032.0051,59.5187,267.6591,1,0); // elegy
- AddStaticVehicle(562,1244.6860,-2039.6648,59.5243,266.5664,0,0); // elegy
- AddStaticVehicle(429,1277.4963,-2010.1981,58.5997,90.8366,161,0); // banshee
- AddStaticVehicle(429,1277.7992,-2018.0035,58.6142,90.0940,414,0); // banshee
- AddStaticVehicle(429,1277.6654,-2026.1292,58.6381,90.8353,150,0); // banshee
- AddStaticVehicle(482,1277.7650,-2035.0635,59.0450,91.4175,25,0); // burrito
- AddStaticVehicle(482,1277.3502,-2044.1201,59.1549,88.3595,0,0); // burrito
- AddStaticVehicle(562,1770.3240,-1863.9011,13.2334,0.3221,0,0); // car
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- { SetPlayerPos(playerid, -1752.9205,885.4060,295.8750);
- SetPlayerFacingAngle(playerid, 327.8306);
- SetPlayerCameraPos(playerid, -1748.4633,893.6845,297.6000);
- SetPlayerCameraLookAt(playerid, -1752.9205,885.4060,295.8750);
- return 1;
- }
- public OnPlayerConnect(playerid)
- { SendClientMessage(playerid, COLOR_BRIGHTRED, "Welcome to w00tEpicz server!");
- SendClientMessage(playerid, COLOR_YELLOW, "Please read /cmds, /teles and /rules");
- SendClientMessage(playerid, COLOR_YELLOW, "Press 2 to fix a vehicle!");
- SendClientMessage(playerid, COLOR_GREEN, "Enjoy your time here!");
- return 1;
- }
- public OnPlayerSpawn(playerid)
- { SendClientMessage(playerid, COLOR_GREEN, "Have fun!");
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- { SendClientMessage(playerid, COLOR_BRIGHTRED, "Please report who killed you!");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/ls", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1479.9854,-1737.7329,13.5469);
- SendClientMessage(playerid, COLOR_YELLOW , "You have teleported to Los Santos!");
- return 1;
- }
- if (strcmp("/healme", cmdtext, true, 10) == 0)
- { SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid, COLOR_GREEN, "You have healed yourself!");
- return 1;
- }
- if (strcmp("/kill", cmdtext, true, 5) == 0)
- { SetPlayerHealth(playerid, 0);
- SendClientMessage(playerid, COLOR_GREEN, "You have killed yourself!");
- return 1;
- }
- if (strcmp("/help", cmdtext, true, 5) == 0)
- { SendClientMessage(playerid, COLOR_YELLOW, "Welcome to W00tEpicz Private Server!");
- SendClientMessage(playerid, COLOR_YELLOW, "Please read /cmds,/teles and /rules if your new to the server");
- return 1;
- }
- if (strcmp("/rules", cmdtext, true, 5) == 0)
- { SendClientMessage(playerid, COLOR_BLUE, "Rules:");
- SendClientMessage(playerid, COLOR_BLUE, "1-Do not ask for admin");
- SendClientMessage(playerid, COLOR_BLUE, "2-Do not spam or command spam");
- SendClientMessage(playerid, COLOR_BLUE, "3-Hacks are strictly not allowed!");
- SendClientMessage(playerid, COLOR_BLUE, "4-Admins decision is final and is to be respected and not to be discussed!");
- SendClientMessage(playerid, COLOR_BLUE, "5-Weapons are not allowed as well as DeathMatch!");
- SendClientMessage(playerid, COLOR_BLUE, "If the rules mentioned above are broken, you will get a jail/warn/kick/ban");
- SendClientMessage(playerid, COLOR_BLUE, "Thank you for reading the rules!");
- return 1;
- }
- if (strcmp("/sf", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-1979.7168,884.1320,45.2031);
- SendClientMessage(playerid, COLOR_YELLOW , "You have teleported to San Fierro!");
- return 1;
- }
- if (strcmp("/lv", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,2039.2662,1546.4739,10.6719);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Las Venturas!");
- return 1;
- }
- if (strcmp("/drift1", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-305.3433,1566.0804,75.3594);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to drift1!");
- return 1;
- }
- if (strcmp("/drift2", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,2309.1719,1393.7571,42.8203);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to drift2!");
- return 1;
- }
- if (strcmp("/drift3", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-2521.7515,-611.3864,132.5625);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to drift3!");
- return 1;
- }
- if (strcmp("/chilliad", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-2325.4771,-1611.6086,483.7348);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Mount. Chilliad!");
- return 1;
- }
- if (strcmp("/sfap", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-1471.8755,-190.7191,14.1484);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to San fierro Airport!");
- return 1;
- }
- if (strcmp("/bayside", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-2262.0596,2292.8398,4.8202);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to BaySide!");
- return 1;
- }
- if (strcmp("/home", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1714.1754,-1854.8762,13.5763);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Spawn!");
- return 1;
- }
- if (strcmp("/lsap", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1988.3987,-2188.9333,13.5469);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Los Santos Airport!");
- return 1;
- }
- if (strcmp("/lvap", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1320.9373,1286.1116,10.8203);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Las Venturas Airport!");
- return 1;
- }
- if (strcmp("/steerlock1", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,2255.0161,2792.4199,10.8203);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to steerlock spot 1!");
- return 1;
- }
- if (strcmp("/steerlock2", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1448.7007,1424.1096,10.8203);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to steerlock spot 2!");
- return 1;
- }
- if (strcmp("/steerlock3", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1428.8042,1605.1031,10.8130);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to steerlock spot 3!");
- return 1;
- }
- if (strcmp("/steerlock4", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-1977.4703,840.5991,45.2969);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to steerlock spot 4!");
- return 1;
- }
- if (strcmp("/battlefield", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-975.1406,1061.0897,1345.6719);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Battlefield!");
- return 1;
- }
- if (strcmp("/libertycity", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-743.6912,489.9080,1371.9270);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to Liberty City!");
- return 1;
- }
- if (strcmp("/tune1", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,-2705.3804,217.1225,4.1797);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to tune 1!");
- return 1;
- }
- if (strcmp("/tune2", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,2644.5332,-2014.7360,13.5589);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to tune 2!");
- return 1;
- }
- if (strcmp("/tune3", cmdtext, true, 10) == 0)
- { SetPlayerPos(playerid,1041.5752,-1036.5500,31.7432);
- SendClientMessage(playerid, COLOR_YELLOW, "You have teleported to tune 3!");
- return 1;
- }
- if (strcmp("/teles", cmdtext, true, 10) == 0)
- { SendClientMessage(playerid, COLOR_GREEN, "===========================================");
- SendClientMessage(playerid, COLOR_BLUE, "/drift1, /drift2 , /drift3");
- SendClientMessage(playerid, COLOR_BLUE, "/steerlock1, /steerlock2, /steerlock3, /steerlock4");
- SendClientMessage(playerid, COLOR_BLUE, "/lsap, /lvap, /sfap");
- SendClientMessage(playerid, COLOR_BLUE, "/chilliad, /bayside, /libertycity, /battlefield, /home");
- SendClientMessage(playerid, COLOR_BLUE, "/tune1, /trune2, /tune3");
- SendClientMessage(playerid, COLOR_GREEN, "===========================================");
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- SendClientMessage(playerid, COLOR_DARKGREY, "You have enter a vehicle! Type /tune1-3 if you want to tune a car");
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(PRESSED,("KEY_SUBMISSION);
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsPlayerInVehicle(playerid, vehicleid))
- {
- SetVehicleHealth(vehicleid,1000.0);
- RepairVehicle(GetPlayerVehicleID(playerid));
- PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
- SendClientMessage(playerid,COLOR_YELLOW,"Vehicle fixed!");
- }
- }
- if(PRESSED(KEY_ACTION))
- {
- if(IsPlayerNotInVehicle(playerid))
- {
- SendClientMessage(playerid,COLOR_YELLOW,"You have to be in a vehicle!");
- }
- }
- {if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && (newkeys & KEY_ACTION || newkeys & KEY_FIRE)) AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement