Hallo liebes Forum.
Ich habe mir heute San Fierro Krankenhaus Gemappt.
und jaja veve.
ich habe Halt alles fertig, doch ich finden den fehler net die tore öffnen sich net. Egal mit welchem befehl es gibt im script keine errors. sonst was.
wär nett mir einer es erklären könnte.
mfg
//SF Medic base
if(strcmp(cmdtext,"/msfall",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
if(msfvar == 0)
{
MoveObject(msf1,-2589.3884277344,618.25079345703,17.179370880127,0.5,0,88.25,90.25);
MoveObject(msf2,-2581.3269042969,618.2509765625,17.204370498657,0.5,0,86.749938964844,90.247192382813);
MoveObject(msf3,-2571.8686523438,618.29095458984,17.17937088012,0.5,0,85.749877929688,90.247222900391);
MoveObject(msf4,-2563.7697753906,618.35333251953,17.254369735718,0.5,0,85.749969482422,90.247222900391);
MoveObject(msf5,-2554.5114746094,618.29675292969,17.254369735718,0.5,0,85.499969482422,90.247192382813);
MoveObject(msf6,-2544.1474609375,617.154296875,14.744819641113,0.5,0,0,264);
msfvar = 1;
}
else
{
MoveObject(msf1,-2589.3598632813,617.17718505859,15.429396629333,0.5,0,0.25,90.25);
MoveObject(msf2,-2581.328125,617.19995117188,15.429396629333,0.5,0,0,90.247192382813);
MoveObject(msf3,-2571.8779296875,617.1904296875,15.429396629333,0.5,0,0,90.247192382813);
MoveObject(msf4,-2563.7680664063,617.17718505859,15.429396629333,0.5,0,0,90.247192382813);
MoveObject(msf5,-2554.5043945313,617.17065429688,15.429396629333,0.5,0,0.25,90.247192382813);
MoveObject(msf6,-2544.1474609375,617.154296875,14.744819641113,0.5,0,0,0);
msfvar = 0;
}
}
}
if(strcmp(cmdtext,"/msf1",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
MoveObject(msf1,-2589.3884277344,618.25079345703,17.179370880127,0.5,0,88.25,90.25);
SetTimer("msfclose1", 10000, 0);
}
}
if(strcmp(cmdtext,"/msf2",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
MoveObject(msf2,-2581.3269042969,618.2509765625,17.204370498657,0.5,0,86.749938964844,90.247192382813);
SetTimer("msfclose2", 10000, 0);
}
}
if(strcmp(cmdtext,"/msf3",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
MoveObject(msf3,-2571.8686523438,618.29095458984,17.17937088012,0.5,0,85.749877929688,90.247222900391);
SetTimer("msfclose3", 10000, 0);
}
}
if(strcmp(cmdtext,"/msf4",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
MoveObject(msf4,-2563.7697753906,618.35333251953,17.254369735718,0.5,0,85.749969482422,90.247222900391);
SetTimer("msfclose4", 10000, 0);
}
}
if(strcmp(cmdtext,"/msf5",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
MoveObject(msf5,-2554.5114746094,618.29675292969,17.254369735718,0.5,0,85.499969482422,90.247192382813);
SetTimer("msfclose5", 10000, 0);
}
}
if(strcmp(cmdtext,"/msf6",true)==0)
{
if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
MoveObject(msf6,-2544.1474609375,617.154296875,14.744819641113,0.5,0,0,264);
SetTimer("msfclose6", 10000, 0);
}
}
forward msfclose1();
public msfclose1()
{
MoveObject(msf1,-2589.3598632813,617.17718505859,15.429396629333,0.5,0,0.25,90.25);
return 1;
}
forward msfclose2();
public msfclose2()
{
MoveObject(msf2,-2581.328125,617.19995117188,15.429396629333,0.5,0,0,90.247192382813);
return 1;
}
forward msfclose3();
public msfclose3()
{
MoveObject(msf3,-2571.8779296875,617.1904296875,15.429396629333,0.5,0,0,90.247192382813);
return 1;
}
forward msfclose4();
public msfclose4()
{
MoveObject(msf4,-2563.7680664063,617.17718505859,15.429396629333,0.5,0,0,90.247192382813);
return 1;
}
forward msfclose5();
public msfclose5()
{
MoveObject(msf5,-2554.5043945313,617.17065429688,15.429396629333,0.5,0,0.25,90.247192382813);
return 1;
}
forward msfclose6();
public msfclose6()
{
MoveObject(msf6,-2544.1474609375,617.154296875,14.744819641113,0.5,0,0,0);
return 1;
}