Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // This is a comment
- // uncomment the line below if you want to write a filterscript
- //#define FILTERSCRIPT
- #include <a_samp>
- #include <sscanf2>
- #include <SII>
- #include <dini>
- #include <streamer>
- #if defined FILTERSCRIPT
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_BLUE 0x0000BBAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_RED 0xAA3333AA
- #define COLOR_LIME 0x10F441AA
- #define COLOR_MAGENTA 0xFF00FFFF
- #define COLOR_NAVY 0x000080AA
- #define COLOR_AQUA 0xF0F8FFAA
- #define COLOR_CRIMSON 0xDC143CAA
- #define COLOR_FLBLUE 0x6495EDAA
- #define COLOR_BISQUE 0xFFE4C4AA
- #define COLOR_BLACK 0x000000AA
- #define COLOR_CHARTREUSE 0x7FFF00AA
- #define COLOR_BROWN 0XA52A2AAA
- #define COLOR_CORAL 0xFF7F50AA
- #define COLOR_GOLD 0xB8860BAA
- #define COLOR_GREENYELLOW 0xADFF2FAA
- #define COLOR_INDIGO 0x4B00B0AA
- #define COLOR_IVORY 0xFFFF82AA
- #define COLOR_LAWNGREEN 0x7CFC00AA
- #define COLOR_SEAGREEN 0x20B2AAAA
- #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
- #define COLOR_MIDNIGHTBLUE 0X191970AA
- #define COLOR_MAROON 0x800000AA
- #define COLOR_OLIVE 0x808000AA
- #define COLOR_ORANGERED 0xFF4500AA
- #define COLOR_PINK 0xFFC0CBAA // - Light light pink
- #define COLOR_SEAGREEN 0x2E8B57AA
- #define COLOR_SPRINGGREEN 0x00FF7FAA
- #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
- #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
- #define COLOR_MEDIUMAQUA 0x83BFBFAA
- #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
- #define WHITE 0xFFFFFFFF
- #define COLOR_UNEMD 0x99CEFFFF
- #define COLOR_ORANGE 0xffcc00FF
- #define COLOR_GRAD1 0xB4B5B7FF
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_USAGE 0xEFEFF7AA
- #define PlayAudioStreamForPlayer
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Blank Filterscript by your name here");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Modern Life Roleplay v0.1");
- print("----------------------------------\n");
- }
- #endif
- public OnGameModeInit()
- {
- // Don't use these lines if it's a filterscript
- SetGameModeText("ML-RP");
- ShowPlayerMarkers(0);
- DisableInteriorEnterExits();
- AddPlayerClass(126,1729.9806,-2240.9861,13.5397,180.3687,0,0,0,0,0,0); // Airport player spawn
- AddStaticVehicle(510,1678.5001,-2268.1494,13.1421,272.8152,6,6); // Mountain Bike airport save 1
- AddStaticVehicle(510,1678.4502,-2271.0005,13.1424,270.7998,6,6); // Mountain Bike airport save 2
- AddStaticVehicle(510,1678.7333,-2273.7915,13.1406,270.2376,6,6); // Mountain Bike airport save 3
- AddStaticVehicle(510,1678.7526,-2276.6724,13.1397,273.6611,6,6); // Mountain Bike airport save 4
- AddStaticVehicle(510,1678.5126,-2279.6289,13.1410,269.4542,6,6); // Mountain Bike airport save 5
- AddStaticVehicle(510,1678.6660,-2282.4619,13.1403,269.2610,6,6); // Mountain Bike airport save 6
- AddStaticVehicle(510,1678.8617,-2285.1924,13.1373,269.8781,6,6); // Mountain Bike airport save 7
- AddStaticVehicle(510,1678.6013,-2287.8850,13.1402,272.0867,6,6); // Mountain Bike airport save 8
- AddStaticVehicle(510,1678.7000,-2290.8914,13.1399,271.3857,6,6); // Mountain Bike airport save 9
- AddStaticVehicle(510,1678.7288,-2293.4788,13.1381,272.1255,6,6); // Mountain Bike airport save 10
- AddStaticVehicle(510,1678.6245,-2296.6619,13.1403,273.4403,6,6); // Mountain Bike airport save 11
- AddStaticVehicle(510,1678.6400,-2299.1687,13.1394,268.7907,6,6); // Mountain Bike airport save 12
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- SetPlayerPos{playerid, 1476.6511,-915.2690,59.6022};
- SetPlayerFacingAngle{playerid, 26.2262};
- SetPlayerCamerPos{playerid, 1469.3384,-909.2597,59.6022};
- SetplayerCameraLookAt{playerid, 1476.6511,-915.2690,59.6022};
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- SendClientMessage(playerid,0xFFFF00AA,"We Are Fixing Some Bugs Please Be Patient");
- TogglePlayerClock(playerid, 0); // Show the clock
- SetPlayerColor(playerid,0xFFFFFFAA);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- #define StartMoney 15000 // Money that player has when he/she spawns
- GivePlayerMoney(playerid, StartMoney);
- SendClientMessage(playerid,0xFFFF00AA,"Use /help for the help menu");
- SetPlayerColor(playerid,0xFFFFFFAA);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- 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(cmdtext, "/help", true)) ////////////////////////////////////////////////////////Help menu add here...
- {
- SendClientMessage(playerid, 0xffcc00FF, "---------------------Available Cmds----------------------");
- SendClientMessage(playerid, 0x99CEFFFF, ".::GENERAL::. /anims, /admins, /report, /ahelp, /rules");
- SendClientMessage(playerid, 0x99CEFFFF, ".::WEAPONS::. /dropgun, /pickupgun ");
- SendClientMessage(playerid, 0x99CEFFFF, ".::HOUSE::. /buyhouse, /housemenu, /enter");
- SendClientMessage(playerid, 0x99CEFFFF, ".::BANK::. ");
- SendClientMessage(playerid, 0xffcc00FF, "---------------------------------------------------------------");
- return 1;
- // Returning 1 informs the server that the command has been processed.
- // OnPlayerCommandText won't be called in other scripts.
- }
- if(!strcmp(cmdtext, "/rules", true)) ////////////////////////////////////////////////////////Help menu add here...
- {
- SendClientMessage(playerid, 0xAA3333AA, "----------------------------------------RULES---------------------------------------------");
- SendClientMessage(playerid, 0xffcc00FF, "------------Do not kill other players without a valid reason----------------------");
- SendClientMessage(playerid, 0xffcc00FF, "------------Do not use your car to kill players or driving by---------------------");
- SendClientMessage(playerid, 0xffcc00FF, "------------Do not use hacks or any other illegal software-----------------------");
- SendClientMessage(playerid, 0xffcc00FF, "------------Always use /report if you see someone hacking---------------------");
- SendClientMessage(playerid, 0xAA3333AA, "----------------------------------------------------------------------------------------------");
- return 1;
- // Returning 1 informs the server that the command has been processed.
- // OnPlayerCommandText won't be called in other scripts.
- }
- return 0;
- // Returning 0 informs the server that the command hasn't been processed by this script.
- // OnPlayerCommandText will be called in other scripts until one returns 1.
- // If no scripts return 1, the 'SERVER: Unknown Command' message will be shown.
- }
- ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- return 1;
- }
- public OnPlayerStateChange(playerid,newstate,oldstate)
- {
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
Add Comment
Please, Sign In to add comment