Hallo liebe Brotfische.
Meine Tore funktionieren nicht mehr. Ich weiß nicht mehr genau ab wann das so war, aber vielleicht handelt es sich ja auch nur um einen simplen Fehler, den einer von euch finden kann.
Die Befehle "/pd1", "/pd2" und "/pd3"
if (strcmp("/pd1", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 250.7000000, 62.3000000, 1004.7000100))//LSPD Interior
{
if(IstSpielerInFraktion(playerid,1))
{
MoveObject(pd11,250.6000100,62.6000000,1004.999987793, 2);
MoveObject(pd12,250.6000100,62.5999800,1002.6399536133, 2);
SetTimer("pd1close",3000,false);
return 1;
}
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, -1572.0000000, 661.5000000, 7.8500000)) //SFPD Haupttor
{
if(IstSpielerInFraktion(playerid,2))
{
if(pd3open[playerid] == 0)
{
MoveObject(pd3, -1572.0, 670.70001220703, 7.9000000953674, 2);
pd3open[playerid] = 1;
return 1;
}
else if(pd3open[playerid] == 1)
{
MoveObject(pd3, -1572.0000000, 661.5000000, 7.8500000, 2);
pd3open[playerid] = 0;
return 1;
}
}
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1539.7998000, -1627.6992200, 14.3000000)) //LSPD Haupttor
{
if(IstSpielerInFraktion(playerid, 1) || IstSpielerInFraktion(playerid, 2) || IstSpielerInFraktion(playerid, 3))
{
if(pd6open[playerid] == 0)
{
MoveObject(pd6, 1539.7998000, -1627.6992200, 8.000000190735, 2);
pd6open[playerid] = 1;
return 1;
}
else if(pd6open[playerid] == 1)
{
MoveObject(pd6, 1539.7998000, -1627.6992200, 14.3000000, 2);
pd6open[playerid] = 0;
return 1;
}
}
}
return 1;
}
if (strcmp("/pd2", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.39999389648, 72.400001525879, 1003.5999755859))//LSPD Interior
{
if(IstSpielerInFraktion(playerid,1))
{
MoveObject(pd21,246.6000100,72.5000000,1004.999987793, 2);
MoveObject(pd22,246.5996100,72.5000000,1002.6399536133, 2);
SetTimer("pd2close",3000,false);
}
}
if(IsPlayerInRangeOfPoint(playerid,10.0, -1631.6999500, 688.5999800, 8.7000000)) //SFPD Garage
{
if(IstSpielerInFraktion(playerid, 2))
{
if(pd4open[playerid] == 0)
{
MoveObject(pd4, -1631.6999500, 688.5999800, 12.9999998092651, 2);
pd4open[playerid] = 1;
return 1;
}
else if(pd4open[playerid] == 1)
{
MoveObject(pd4, -1631.6999500, 688.5999800, 8.7000000, 2);
pd4open[playerid] = 0;
return 1;
}
}
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1590.1992200, -1637.8994100, 14.7000000)) //LSPD Garagentor
{
if(IstSpielerInFraktion(playerid, 1))
{
if(pd7open[playerid] == 0)
{
MoveObject(pd7, 1590.1992200, -1637.8994100, 9.5099996566772, 2);
pd7open[playerid] = 1;
return 1;
}
else if(pd7open[playerid] == 1)
{
MoveObject(pd7, 1590.1992200, -1637.8994100, 14.7000000, 2);
pd7open[playerid] = 0;
return 1;
}
}
}
return 1;
}
if (strcmp("/pd3", cmdtext, true, 10) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, -1701.5000000, 679.7999900, 23.7000000))//SFPD Hintereinfahrt
{
if(IstSpielerInFraktion(playerid, 2))
{
if(pd5open[playerid] == 0)
{
MoveObject(pd5, -1701.5000000, 679.7999900, 20.600000762939, 2.0);
pd5open[playerid] = 1;
return 1;
}
else if(pd5open[playerid] == 1)
{
MoveObject(pd5, -1701.5000000, 679.7999900, 23.7000000, 2.0);
pd5open[playerid] = 0;
return 1;
}
}
}
return 1;
}
("/pd3" habe ich noch nicht getestet.)
Danke im Vorraus!
Mit freundlichen Grüßen,
Bosei.