Hey.
Ich probiere grade alle tore aus da ich ein paar neu gemacht habe aber irgend wie gehen die Feuerwehr tore nicht.
Hier:
if(strcmp(cmd,"/alltore", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(Feuertoralle == 0)
{
MoveObject(Feuertor1,2125.216796875, -2126.0751953125, 14.420000076294,3);
MoveObject(Feuertor2,2119.466796875, -2126.0751953125, 14.420000076294,3);
MoveObject(Feuertor3,2133.9658203125, -2126.0751953125, 14.420000076294,3);
Feuertoralle = 1;
}
else if(Feuertoralle == 1)
{
MoveObject(Feuertor1,2125.216796875, -2126.0751953125, 18.420000076294,3);
MoveObject(Feuertor2,2119.466796875, -2126.0751953125, 18.420000076294,3);
MoveObject(Feuertor3,2133.9658203125, -2126.0751953125, 18.420000076294,3);
Feuertoralle = 0;
}
}
return 1;
}
if(strcmp(cmd,"/tor1", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(ftor1 == 0)
{
MoveObject(Feuertor1,2125.216796875, -2126.0751953125, 14.420000076294,3);
ftor1 = 1;
}
else if(ftor1 == 1)
{
MoveObject(Feuertor1,2125.216796875, -2126.0751953125, 18.420000076294,3);
ftor1 = 0;
}
}
return 1;
}
if(strcmp(cmd,"/tor2", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(ftor2 == 0)
{
MoveObject(Feuertor2,2119.466796875, -2126.0751953125, 14.420000076294,3);
ftor2 = 1;
}
else if(ftor2 == 1)
{
MoveObject(Feuertor2,2119.466796875, -2126.0751953125, 18.420000076294,3);
ftor2 = 0;
}
}
return 1;
}
if(strcmp(cmd,"/tor3", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(ftor3 == 0)
{
MoveObject(Feuertor3,2133.9658203125, -2126.0751953125, 14.420000076294,3);
ftor3 = 1;
}
else if(ftor3 == 1)
{
MoveObject(Feuertor3,2133.9658203125, -2126.0751953125, 18.420000076294,3);
ftor3 = 0;
}
}
return 1;
}
Bitte umhilfe weis nicht weiter.