Guten Tag habe das Problem das ein Tor Funktioniert aber nur Schief dann geht und eins das garnicht auf geht ich hoffe ihr könnt mir helfen
new Tor[2];
new Torvar[2];
Tor[0] = CreateObject(971,923.07,-1215.36,19.50,0.00,0.00,-89.04);
Tor[1] = CreateObject(971,923.21,-1226.73,19.50,0.00,0.00,-89.04);
if(strcmp(cmd,"/mv", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,923.07,-1215.36,19.50))
{
if(IsPlayerInFrac(playerid, 24) || IsPlayerInFrac(playerid,3))
{
if(Torvar[0] == 0)
{
MoveObject(Tor[0], 923.07,-1215.36,19.50,0.00,0.00,-89.04,1.5);
Torvar[0] = 1;
}
else if(Torvar[0] == 1)
{
MoveObject(Tor[0],923.05,-1215.36, 12.38,0.00, 0.00,-89.04,1.5);
Torvar[0] = 0;
}
}
}
else if(IsPlayerInRangeOfPoint(playerid,10.0,923.26,-1227.13,19.50))
{
if(IsPlayerInFrac(playerid, 24) || IsPlayerInFrac(playerid,3))
{
if(Torvar[1] == 0)
{
MoveObject(Tor[0],923.21,-1226.73,19.50,0.00,0.00,-89.04,1.5);
Torvar[1] = 1;
}
else if(Torvar[1] == 1)
{
MoveObject(Tor[0],923.26,-1227.03,12.38,0.00,0.00,-89.04,1.5);
Torvar[1] = 0;
}
}
}
else
return 1;
}