Ich wollte alle gates auf die commands /opengate umschreiben und hab dann dass gemacht
if(strcmp(cmd, "/opengate", true) == 0)
{
if(PlayerToPoint(30, playerid,92.3802,1920.1704,18.0122) (30, playerid,87.1790,1919.5405,17.8444))
{
if(IsACop(playerid))
{
MoveObject(army, 90.051452636719, 1913.6932373047, 18.140817642212,1.5);
SetTimer("armygateclose" , 15000,0);
}
}
else if(PlayerToPoint(30, playerid,1539.8361,-1627.5444,13.3828) (30, playerid,1547.1702,-1627.2438,13.3828))
{
if(IsACop(playerid))
{
SetObjectRot(LSPDBarrier1,0.000000,0.000000,269.818847); // Moves the object
SetTimer("lsschrankeclose" , 10000,0);
}
}
else if(PlayerToPoint(30, playerid,-1570.2814,662.3550,7.1875) (30, playerid,-1574.9324,662.5908,7.1875))
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier1,0.000000,-1.000000,91.176780);
SetTimer("sf1schrankeclose" , 10000,0);
}
}
else if(PlayerToPoint(30, playerid,-1698.1458,684.4933,24.2713) (30, playerid,-1704.7534,684.3042,24.8906))
{
if(IsACop(playerid))
{
SetObjectRot(SFPDBarrier2,0.000000,-1.000000,269.939086);
SetTimer("sf2schrankeclose" , 10000,0);
}
}
else if(PlayerToPoint(30, playerid,-1630.8342,683.5980,7.1875) (30, playerid,-1632.9371,692.0541,7.1014))
{
if(IsACop(playerid))
{
MoveObject(SFPDGate1, -1627.696777,688.464660,1.599885,1.0);
MoveObject(SFPDGate2, -1636.529296,688.580444,1.599885,1.0);
SetTimer("sfpdgateclose" , 15000,0);
}
}
else if(PlayerToPoint(30, playerid,1588.8389,-1635.6748,13.4044) (30, playerid, 1587.8499,-1643.6256,12.4022))
{
if(IsACop(playerid))
{
MoveObject(LSPDGate1, 1600.5695800781, -1638.1795654297, 14.796444892883,1.0);
SetTimer("lspdgateclose" , 20000,0);
}
}
}
es kommen keine errors oder so... aber trotzdessen funktioniert /opengate nur beim ersten tor(dem army tor)
wie gesagt keine errors aber nur das erste tor lässt sich öffnen...
Kann mir einer helfen bitte??
Ich komm nicht weiter
MFG Yoman