Guten Abend,
ich hatte grade lw und habe mir gedacht da soviele den BSn mögen mach ich mal ne Adminbase in der nähe des BSN's.
Ich habe mich schnell dran gesetzt und auch schnell ein Command mit dem Fahrstuhl geschrieben.
Screens finder ihr hier:
Slideshow
Hier die Objecte+das Command:
Das muss unter die Includes:
forward CloseVillaTor();
new VillaTor;
Das muss in das public: OnGameModeInit
VillaTor = CreateObject(3115,1114.59997559,-861.20001221,56.88000107,0.00000000,0.00000000,90.00000000); //object(carrier_lift1_sfse) (1)
AddStaticVehicleEx(411,1125.50000000,-876.00000000,58.00000000,90.00000000,-1,-1,15); //Infernus
AddStaticVehicleEx(411,1125.50000000,-881.50000000,58.00000000,90.00000000,-1,-1,15); //Infernus
AddStaticVehicleEx(400,1093.90002441,-887.70001221,58.29999924,270.00000000,-1,1,15); //Landstalker
AddStaticVehicleEx(400,1093.90002441,-881.79998779,58.29999924,270.00000000,-1,1,15); //Landstalker
AddStaticVehicleEx(409,1133.19995117,-887.79998779,58.09999847,90.00000000,1,1,15); //Stretch
AddStaticVehicleEx(487,1110.19995117,-904.50000000,70.30000305,90.00000000,1,1,15); //Maverick
CreateObject(3605,1110.59997559,-904.59997559,63.29999924,0.00000000,0.00000000,180.00000000); //object(bevman3_law2) (1)
CreateObject(3604,1086.30004883,-884.70001221,59.70000076,0.00000000,0.00000000,90.00000000); //object(bevmangar_law2) (1)
CreateObject(3604,1133.30004883,-878.90002441,59.70000076,0.00000000,0.00000000,270.00000000); //object(bevmangar_law2) (2)
CreateObject(16000,1100.19995117,-904.59997559,69.00000000,90.00000000,0.00000000,90.00000000); //object(drvin_screen) (1)
CreateObject(16000,1121.09997559,-904.59997559,69.00000000,90.00000000,0.00000000,270.00000000); //object(drvin_screen) (2)
CreateObject(3934,1110.19995117,-904.50000000,69.00000000,0.00000000,0.00000000,0.00000000); //object(helipad01) (1)
CreateObject(8572,1122.00000000,-901.00000000,67.69999695,0.00000000,0.00000000,90.00000000); //object(vgssstairs02_lvs) (1)
CreateObject(13749,1097.50000000,-884.00000000,62.20000076,0.00000000,0.00000000,233.99780273); //object(cunte_curvesteps1) (2)
CreateObject(8674,1100.09997559,-871.70001221,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (1)
CreateObject(8674,1089.80004883,-871.70001221,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (2)
CreateObject(8674,1087.19995117,-871.70001221,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (3)
CreateObject(8674,1082.00000000,-876.79998779,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (4)
CreateObject(8674,1129.09997559,-871.70001221,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (5)
CreateObject(8674,1081.50000000,-894.50000000,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (6)
CreateObject(8674,1081.50000000,-904.70001221,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (7)
CreateObject(8674,1081.50000000,-915.00000000,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (8)
CreateObject(8674,1081.50000000,-919.40002441,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (9)
CreateObject(8674,1138.09997559,-890.50000000,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (10)
CreateObject(8674,1138.09997559,-900.79998779,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (11)
CreateObject(8674,1138.09997559,-911.09997559,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (12)
CreateObject(8674,1138.09997559,-919.29998779,58.70000076,0.00000000,0.00000000,90.00000000); //object(csrsfence02_lvs) (13)
CreateObject(8674,1086.69995117,-924.59997559,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (14)
CreateObject(8674,1097.00000000,-924.59997559,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (15)
CreateObject(8674,1107.19995117,-924.59997559,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (16)
CreateObject(8674,1117.59997559,-924.59997559,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (17)
CreateObject(8674,1132.90002441,-924.59997559,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (18)
CreateObject(8674,1125.30004883,-924.59997559,58.70000076,0.00000000,0.00000000,0.00000000); //object(csrsfence02_lvs) (19)
Daszu muss ich wohl nichts erklären:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmd,"/villa", true) == 0)
{
MoveObject(VillaTor,1114.59997559,-861.20001221,41.799999237061,3);
SetTimer("CloseVillaTor", 5000, 0);
SendClientMessage(playerid, COLOR_GREEN,"Buttler:Ihr Fahrstuhl fährt nun herunter.");
return 1;
}
return 0;
}
public CloseVillaTor()
{
MoveObject(VillaTor,1114.59997559,-861.20001221,56.88000107,3);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i) && IsPlayerInRangeOfPoint(i,15.0,1114.59997559,-861.20001221,49.799999237061))
{
PlaySoundForPlayer(i,1035);
SetTimerEx("PlaySoundForPlayer",2000,0,"id",i,1036);
}
}
return 1;
}
Ein Downloadlink muss ich wohl nirgends reinstellen da oben ja alles vorhanden ist.
Mit freundlichen Grüßen
Bloodangel aka lollipop
//Edit Es soll nicht unbedingt RL sein sondern eher für ein DM oder
TDM Server etc. geeignet sein unter RL verstehe ich auch was anderes ;D
//Edit Überschrift