Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define FILTERSCRIPT
- #include <a_samp>
- #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
- new gate;
- new bool:Open;
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Impound Lot - By Howelley");
- print("--------------------------------------\n");
- gate = CreateObject(10671, 1275.58, -1270.28, 14.32, 0.00, 0.00, 90.00);
- CreateObject(14819, 1247.21, -1240.56, 17.46, 0.00, 0.00, 90.00);
- CreateObject(3034, 1247.37, -1238.07, 17.95, 0.00, 0.00, 90.00);
- CreateObject(3034, 1247.37, -1234.00, 17.95, 0.00, 0.00, 90.00);
- CreateObject(19462, 1251.72, -1238.86, 700.00, 0.00, 90.00, 0.00);
- CreateObject(19462, 1255.22, -1238.86, 700.00, 0.00, 90.00, 0.00);
- CreateObject(19462, 1258.73, -1238.86, 700.00, 0.00, 90.00, 0.00);
- CreateObject(19453, 1250.06, -1238.86, 701.75, 0.00, 0.00, 0.00);
- CreateObject(19453, 1260.53, -1238.86, 701.75, 0.00, 0.00, 0.00);
- CreateObject(19453, 1250.39, -1234.13, 701.78, 0.00, 0.00, 90.00);
- CreateObject(19453, 1260.03, -1234.13, 701.78, 0.00, 0.00, 90.00);
- CreateObject(19453, 1260.02, -1243.63, 701.78, 0.00, 0.00, 90.00);
- CreateObject(19453, 1250.39, -1243.63, 701.78, 0.00, 0.00, 90.00);
- CreateObject(14819, 1259.89, -1234.04, 701.21, 0.00, 0.00, 0.00);
- CreateObject(2008, 1254.66, -1241.33, 700.09, 0.00, 0.00, 0.00);
- CreateObject(1663, 1255.14, -1242.08, 700.57, 0.00, 0.00, -180.00);
- CreateObject(6959, 1253.20, -1241.54, 703.66, 0.00, 0.00, 0.00);
- CreatePickup(1559, 1, 1247.7178, -1241.1053, 17.4252); // I Symbol
- return 1;
- }
- public OnFilterScriptExit()
- {
- 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)
- {
- RemoveBuildingForPlayer(playerid, 1388, 1238.3750, -1258.2813, 57.2031, 0.25);//Remove Crane
- RemoveBuildingForPlayer(playerid, 1391, 1238.3750, -1258.2734, 44.6641, 0.25);//Remove Crane
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- 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[])//Commands
- {
- if (strcmp("/gotoimpound", cmdtext, true, 10) == 0)
- {
- SetPlayerPos(playerid, 1275.3097, -1275.2808, 13.5287);
- return 1;
- }
- if (strcmp("/enter", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10, 1247.7178, -1241.1053, 17.4252))
- {
- SetPlayerPos(playerid, 1259.4491, -1234.7715, 701.0859);
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_RED, "You are not near the enterence of this building");
- }
- if (strcmp("/exit", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10, 1259.4491, -1234.7715, 701.0859))
- {
- SetPlayerPos(playerid, 1247.7178, -1241.1053, 17.4252);
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_RED, "You are not near the exit of this building");
- }
- if (strcmp("/gate", cmdtext, true, 10) == 0)
- {
- if(IsPlayerInRangeOfPoint(playerid, 10, 1275.58, -1270.28, 14.32))
- {
- if(Open == false)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "The gate is now opening!");
- MoveObject(gate, 1275.58, -1270.28, 4.32, 2.0);
- Open = true;
- return 1;
- }
- if(Open == true)
- {
- SendClientMessage(playerid, COLOR_LIGHTBLUE, "The gate is now closing!");
- MoveObject(gate, 1275.58, -1270.28, 14.32, 2.0);
- Open = false;
- return 1;
- }
- return 1;
- }
- else return SendClientMessage(playerid, COLOR_RED, "You are not near the impound lot!");
- }
- return 0;
- }
- 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;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment