13.08.2011, 16:13
(
Последний раз редактировалось Kalzifer; 13.08.2011 в 17:39.
)
Hi everyone!!! I spent a looooot of time creating different maps and modifications, but now I decided to share it.
Today I'd like to present U my first filterscript 4 sa:mp 0.3c - Admin Base LV 1.0
The base itself will appear near LV Airport (besides it will be shown on screens). Base is huge so it's impossible not to notice it
(Important!!!Not a bug!!!: Base walls aren't transparent from the outside but they are 4rom the inside, so you can see anyone approaching to your base while they can't see you).
How to install it into your mode:
First of all put this line after your "#include <a_samp>" and so on:
Then put these lines to the top of your mode after "define" lines:[/B]
After that you should add this to "public OnGameModeInit":
Of course all that will be useless if you don't install commands to move objects and doors on the base, so here they are:
Add following commands to public "OnPlayerCommandText":
Finally the list of commands:
/abase - teleport to base
/rampup /rampdown - U'll see)
/ogarage1 - open garage1 doors
/cgarage1 - close garage 1 doors
/ogarage2 - open garage2 doors
/cgarage2 - close garage 2 doors
/oproof - open roof
/clroof - close roof
/entup - entrance open
/entdown - entrance closed
/lift1 - lift comes to the left exit ramp
/lift2 - lift goes up to the roof
/lift0 - lift is hidden
/rwo - runway opens and lift goes up (firstly you should stand on the lift that you'll see inside the base near the wall)
/rwc - runway closed, lift goes down
Hm......I think that's all
P.S: Of course you can change all the commands for your own convinience (and the base itself!!...yes!...do whatever you want with this base, develop my idea and I'd be glad to receive any additions 4rom U. And please don't forget that I'm the author of this project
If U have any questions ask here.
Today I'd like to present U my first filterscript 4 sa:mp 0.3c - Admin Base LV 1.0
The base itself will appear near LV Airport (besides it will be shown on screens). Base is huge so it's impossible not to notice it

(Important!!!Not a bug!!!: Base walls aren't transparent from the outside but they are 4rom the inside, so you can see anyone approaching to your base while they can't see you).
How to install it into your mode:
First of all put this line after your "#include <a_samp>" and so on:
Код:
#define color 0xDFF00
Код:
new platform; new platform1; new platform2; new platform3; new obitogate1; new obitogate2; new itachigate1; new itachigate2; new rampplatform1; new rampplatform2; new roof1; new roof2; new roof3; new roof4; new entrance1; new lift; new runwaydoor; new runway1; new runway2; new runwaylift; new dragonhead1; new dragonhead2; new fire1; new fire2;
Код:
platform = CreateObject(3115,1166.08,1307.6,6.57,0,345,0); platform1 = CreateObject(3115,1166.08,1270.04,6.57,0,345,0); platform2 = CreateObject(3115,1087.36,1214.42,6.57,0,345,0); platform3 = CreateObject(10828,1079.85,1204.32,14.68,0,0,0); rampplatform1 = CreateObject(3115,1177.09,1270.04,25.7516,0,90,180); rampplatform2 = CreateObject(3115,1177.09,1307.56,25.7516,0,90,180); roof1 = CreateObject(3115,1128.99,1307.56,78.28,180,180,0); roof2 = CreateObject(3115,1145.96,1307.56,78.28,0,0,0); roof3 = CreateObject(3115,1145.96,1326.34,78.28,0,0,0); roof4 = CreateObject(3115,1128.99,1326.34,78.28,180,180,0); entrance1 = CreateObject(3115,1097.61,1213.75,25.7444,180,270,180); obitogate1 = CreateObject(5422,1151.67,1250.85,11.8422,270,0,0); obitogate2 = CreateObject(5422,1151.67,1246.82,11.8422,270,180,0); itachigate1 = CreateObject(5422,1151.67,1233.68,11.8422,270,0,0); itachigate2 = CreateObject(5422,1151.67,1229.67,11.8422,270,180,0); lift = CreateObject(3115,1187.97,1307.56,4.03,180,180,0); runwaydoor = CreateObject(3115,1177.09,1288.79,67.9996,0,90,180); runwaylift = CreateObject(3115,1103.5,1288.79,9.55,0,0,0); runway1 = CreateObject(3115,1166.8,1288.79,55.95,0,0,0); runway2 = CreateObject(3115,1166.8,1288.79,54.8,0,0,0); dragonhead1 = CreateObject(3528,1178.69,1269.79,25.7516,0,0,0); dragonhead2 = CreateObject(3528,1178.69,1307.25,25.7516,0,0,0); fire1 = CreateObject(18694,1179.62,1270.25,22.0816,0,0,270); fire2 = CreateObject(18694,1179.62,1307.55,22.0816,0,0,270); CreateObject(8947,1163.54,1248.87,12.4422,0,0,270); CreateObject(8947,1163.54,1231.62,12.4422,0,0,270); CreateObject(3115,1166.74,1213.73,78.28,180,180,0);//крыша 1 ряд CreateObject(3115,1166.74,1232.47,78.28,180,180,0); CreateObject(3115,1166.74,1251.24,78.28,180,180,0); CreateObject(3115,1166.74,1270.02,78.28,180,180,0); CreateObject(3115,1166.74,1288.79,78.28,180,180,0); CreateObject(3115,1166.74,1307.56,78.28,180,180,0); CreateObject(3115,1166.74,1326.34,78.28,180,180,0); CreateObject(3115,1166.74,1345.09,78.28,180,180,0); CreateObject(3115,1145.96,1213.73,78.28,0,0,0);//крыша 2 ряд CreateObject(3115,1145.96,1232.47,78.28,0,0,0); CreateObject(3115,1145.96,1251.24,78.28,0,0,0); CreateObject(3115,1145.96,1270.02,78.28,0,0,0); CreateObject(3115,1145.96,1288.79,78.28,0,0,0); CreateObject(3115,1145.96,1345.09,78.28,0,0,0); CreateObject(3115,1128.99,1213.73,78.28,180,180,0);//крыша 3 ряд CreateObject(3115,1128.99,1232.47,78.28,180,180,0); CreateObject(3115,1128.99,1251.24,78.28,180,180,0); CreateObject(3115,1128.99,1270.02,78.28,180,180,0); CreateObject(3115,1128.99,1288.79,78.28,180,180,0); CreateObject(3115,1128.99,1345.09,78.28,180,180,0); CreateObject(3115,1107.86,1213.73,78.28,0,0,0);//крыша 4 ряд CreateObject(3115,1107.86,1232.47,78.28,0,0,0); CreateObject(3115,1107.86,1251.24,78.28,0,0,0); CreateObject(3115,1107.86,1270.02,78.28,0,0,0); CreateObject(3115,1107.86,1288.79,78.28,0,0,0); CreateObject(3115,1107.86,1307.56,78.28,0,0,0); CreateObject(3115,1107.86,1326.34,78.28,0,0,0); CreateObject(3115,1107.86,1345.09,78.28,0,0,0); CreateObject(3115,1177.09,1307.56,67.9996,0,90,180);//стена над выездом CreateObject(3115,1177.09,1270.04,67.9996,0,90,180); CreateObject(3115,1177.09,1307.56,46.876,0,90,180); CreateObject(3115,1177.09,1288.79,46.876,0,90,180); CreateObject(3115,1177.09,1270.04,46.876,0,90,180); CreateObject(3115,1177.09,1288.79,25.7516,0,90,180); CreateObject(3115,1097.61,1213.75,67.9996,180,270,180);//стена над въездом CreateObject(3115,1097.61,1213.75,46.8744,180,270,180); CreateObject(8356,1177.27,1240.64,-15.156,90,90,0);//стены CreateObject(8356,1177.27,1224.33,-15.156,90,90,0); CreateObject(8356,1157.29,1204.32,-15.156,90,0,0); CreateObject(8356,1117.3,1204.32,-15.156,90,0,0); CreateObject(8356,1097.33,1243.14,-15.156,90,270,0); CreateObject(8356,1097.33,1254.54,-15.156,90,270,0); CreateObject(8356,1097.33,1294.5,-15.156,90,270,0); CreateObject(8356,1097.33,1334.49,-15.156,90,270,0); CreateObject(8356,1117.3,1354.48,-15.156,90,180,0); CreateObject(8356,1157.29,1354.48,-15.156,90,180,0); CreateObject(8356,1177.27,1336.95,-15.156,90,90,0); CreateObject(3666,1156.26,1335.7,10.2622,0,0,0);//огни посадки CreateObject(3666,1156.26,1298.17,10.2622,0,0,0); CreateObject(3666,1118.4,1298.17,10.2622,0,0,0); CreateObject(3666,1118.43,1335.7,10.2622,0,0,0); CreateObject(3115,1166.8,1288.79,57.15,0,0,0);//в.п. полоса
Add following commands to public "OnPlayerCommandText":
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp(cmdtext, "/abase", true)==0) //teleport to admin base { if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) { SendClientMessage(playerid,color,"U have to be a driver!"); } else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT || PLAYER_STATE_DRIVER) { new getv = GetPlayerVehicleID(playerid); SetVehiclePos(getv,1106.7158,1280.4280,10.8203); SetPlayerPos(playerid,1106.7158,1280.4280,10.8203); PutPlayerInVehicle(playerid,getv,0); } return 1; } //doors and ramps to go out if (strcmp(cmdtext, "/rampup", true) == 0) { MoveObject(platform, 1166.08,1307.6,12.27, 3); MoveObject(platform1, 1166.08,1269.61,12.27, 3); MoveObject(rampplatform1, 1177.09,1270.04,41.3516, 3); MoveObject(rampplatform2, 1177.09,1307.56,41.3516, 3); MoveObject(dragonhead1, 1178.69,1269.79,41.3516, 3); MoveObject(dragonhead2, 1178.69,1307.25,41.3516, 3); MoveObject(fire1, 1179.62,1270.25,37.6816, 3); MoveObject(fire2, 1179.62,1307.55,37.6816, 3); SendClientMessage(playerid, 0xDEEE20FF, " Ramps up ! "); return 1; } if (strcmp(cmdtext, "/rampdown", true) == 0) { MoveObject(platform, 1166.08,1307.6,6.57, 3); MoveObject(platform1, 1166.08,1269.61,6.57, 3); MoveObject(rampplatform1, 1177.09,1270.04,25.7516, 3); MoveObject(rampplatform2, 1177.09,1307.56,25.7516, 3); MoveObject(dragonhead1, 1178.69,1269.79,25.7516, 3); MoveObject(dragonhead2, 1178.69,1307.25,25.7516, 3); MoveObject(fire1, 1179.62,1270.25,22.0816, 3); MoveObject(fire2, 1179.62,1307.55,22.0816, 3); SendClientMessage(playerid, 0xDEEE20FF, " Ramps down ! "); return 1; } //1 garage gates if (strcmp(cmdtext, "/cgarage1", true) == 0) { MoveObject(obitogate1, 1151.67,1250.85,11.8422, 2); MoveObject(obitogate2, 1151.67,1246.82,11.8422, 2); SendClientMessage(playerid, 0xDEEE20FF, " Garage doors are closed ! "); return 1; } if (strcmp(cmdtext, "/ogarage1", true) == 0) { MoveObject(obitogate1, 1151.67,1254.15,11.8422, 2); MoveObject(obitogate2, 1151.67,1243.52,11.8422, 2); SendClientMessage(playerid, 0xDEEE20FF, " Garage doors are open ! "); return 1; } //2 garage doors if (strcmp(cmdtext, "/cgarage2", true) == 0) { MoveObject(itachigate1, 1151.67,1233.68,11.8422, 2); MoveObject(itachigate2, 1151.67,1229.67,11.8422, 2); SendClientMessage(playerid, 0xDEEE20FF, " Garage doors are closed ! "); return 1; } if (strcmp(cmdtext, "/ogarage2", true) == 0) { MoveObject(itachigate1, 1151.67,1236.93,11.8422, 2); MoveObject(itachigate2, 1151.67,1226.32,11.8422, 2); SendClientMessage(playerid, 0xDEEE20FF, " Garage doors are opened ! "); return 1; } //open/close roof if (strcmp(cmdtext, "/clroof", true) == 0) { MoveObject(roof1, 1128.99,1307.56,78.28, 4); MoveObject(roof2, 1145.96,1307.56,78.28, 4); MoveObject(roof3, 1145.96,1326.34,78.28, 4); MoveObject(roof4, 1128.99,1326.34,78.28, 4); SendClientMessage(playerid, 0xDEEE20FF, " Roof is closed ! "); return 1; } if (strcmp(cmdtext, "/oproof", true) == 0) { MoveObject(roof1, 1107.86,1288.79,78.28, 4); MoveObject(roof2, 1166.74,1288.79,78.28, 4); MoveObject(roof3, 1166.74,1345.09,78.28, 4); MoveObject(roof4, 1107.86,1345.09,78.28, 4); SendClientMessage(playerid, 0xDEEE20FF, " Roof is open ! "); return 1; } //open/close entrance if (strcmp(cmdtext, "/entdown", true) == 0) { MoveObject(platform2, 1087.36,1214.42,6.57, 3); MoveObject(platform3, 1079.85,1204.32,14.6844, 3); MoveObject(entrance1, 1097.61,1213.75,25.7444, 3.5); SendClientMessage(playerid, 0xDEEE20FF, " Entrance closed ! "); return 1; } if (strcmp(cmdtext, "/entup", true) == 0) { MoveObject(platform2, 1087.36,1214.42,12.27, 3); MoveObject(platform3, 1079.85,1204.32,6.18438, 5); MoveObject(entrance1, 1097.61,1213.75,40.7444, 5); SendClientMessage(playerid, 0xDEEE20FF, " Entrance opened ! "); return 1; } //lift if (strcmp(cmdtext, "/lift0", true) == 0) { MoveObject(lift, 1187.97,1307.56,4.03, 6); SendClientMessage(playerid, 0xDEEE20FF, " Lift is down ! "); return 1; } if (strcmp(cmdtext, "/lift1", true) == 0) { MoveObject(lift, 1187.97,1307.56,15.03, 2.9); SendClientMessage(playerid, 0xDEEE20FF, " Lift: 1 floor ! "); return 1; } if (strcmp(cmdtext, "/lift2", true) == 0) { MoveObject(lift, 1187.97,1307.56,211.03, 2.4); SendClientMessage(playerid, 0xDEEE20FF, " Lift: 2 floor ! "); return 1; } //////runway////////////////////////////////////////////////// if (strcmp(cmdtext, "/rwc", true) == 0) { MoveObject(runwaydoor, 1177.09,1288.79,67.9996, 1.5); MoveObject(runwaylift, 1103.5,1288.79,9.55, 1.8); MoveObject(runway1, 1166.8,1288.79,55.95, 2); MoveObject(runway2, 1166.8,1288.79,54.8, 2); SendClientMessage(playerid, 0xDEEE20FF, " Runway's closed,lift 1 floor ! "); return 1; } if (strcmp(cmdtext, "/rwo", true) == 0) { MoveObject(runwaydoor, 1177.09,1288.79,77.9996, 1.5); MoveObject(runwaylift, 1103.5,1288.79,57.15, 1.8); MoveObject(runway1, 1145.69,1288.79,57.15, 2); MoveObject(runway2, 1124.56,1288.79,57.15, 2); SendClientMessage(playerid, 0xDEEE20FF, " Runway's ready, lift 2 floor ! "); return 1; }
/abase - teleport to base
/rampup /rampdown - U'll see)
/ogarage1 - open garage1 doors
/cgarage1 - close garage 1 doors
/ogarage2 - open garage2 doors
/cgarage2 - close garage 2 doors
/oproof - open roof
/clroof - close roof
/entup - entrance open
/entdown - entrance closed
/lift1 - lift comes to the left exit ramp
/lift2 - lift goes up to the roof
/lift0 - lift is hidden
/rwo - runway opens and lift goes up (firstly you should stand on the lift that you'll see inside the base near the wall)
/rwc - runway closed, lift goes down
Hm......I think that's all

P.S: Of course you can change all the commands for your own convinience (and the base itself!!...yes!...do whatever you want with this base, develop my idea and I'd be glad to receive any additions 4rom U. And please don't forget that I'm the author of this project

If U have any questions ask here.