Hey,
bin grade dabei meine Feuerwehr umzulegen aber irgend wie klappt das mit den toren nicht.
Sie gehen nicht auf oder zu.
Hier:
if(strcmp(cmd,"/alltore", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(Feuertoralle == 0)
{
MoveDynamicObject(Feuertor1, 1712.4000244141, -1142.4000244141, 25.799999237061,3);
MoveDynamicObject(Feuertor2, 1729.8000488281, -1142.4000244141, 25.799999237061,3);
MoveDynamicObject(Feuertor3, 1746.8000488281, -1142.4000244141, 25.799999237061,3);
Feuertoralle = 1;
}
else if(Feuertoralle == 1)
{
MoveDynamicObject(Feuertor1, 1712.4000244141, -1142.4000244141, 25.799999237061,3);
MoveDynamicObject(Feuertor2, 1729.8000488281, -1142.4000244141, 25.799999237061,3);
MoveDynamicObject(Feuertor3, 1746.8000488281, -1142.4000244141, 25.799999237061,3);
Feuertoralle = 0;
}
}
return 1;
}
if(strcmp(cmd,"/tor1", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(ftor1 == 0)
{
MoveDynamicObject(Feuertor1, 1712.4000244141, -1142.4000244141, 25.799999237061,3);
ftor1 = 1;
}
else if(ftor1 == 1)
{
MoveDynamicObject(Feuertor1, 1712.4000244141, -1142.4000244141, 25.799999237061,3);
ftor1 = 0;
}
}
return 1;
}
if(strcmp(cmd,"/tor2", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(ftor2 == 0)
{
MoveDynamicObject(Feuertor2, 1729.8000488281, -1142.4000244141, 25.799999237061,3);
ftor2 = 1;
}
else if(ftor2 == 1)
{
MoveDynamicObject(Feuertor2, 1729.8000488281, -1142.4000244141, 25.799999237061,3);
ftor2 = 0;
}
}
return 1;
}
if(strcmp(cmd,"/tor3", true) == 0)
{
if(IsPlayerInFrac(playerid, 22) || PlayerInfo[playerid][pAdmin] >= 1338)
{
if(ftor3 == 0)
{
MoveDynamicObject(Feuertor3, 1746.8000488281, -1142.4000244141, 25.799999237061,3);
ftor3 = 1;
}
else if(ftor3 == 1)
{
MoveDynamicObject(Feuertor3, 1746.8000488281, -1142.4000244141, 25.799999237061,3);
ftor3 = 0;
}
}
return 1;
}
Bitte schnell hilfe