ich will ein befehl ( /opengate ) benutzen, um 4 verschiedene Tore aufzumachen, doch iwie klappt es net und ja ich bin Cop oder Adac
if(strcmp(cmdtext,"/opengate",true) == 0)
{
if(gTeam[playerid] == Adac && PlayerToPoint(4.0, playerid, 777.8640,-1386.2751,13.6865))
{
MoveObject(adacgate, 765.265991, -1384.792480, 12.786276);
}
return 1;
}
if(gTeam[playerid] == Adac && PlayerToPoint(4.0, playerid, 777.5720,-1329.4496,13.5469))
{
MoveObject(adacgate2, 765.254578, -1330.193848, 12.708785);
return 1;
}
if(gTeam[playerid] == Cop || gTeam[playerid] == Fbi || gTeam[playerid] == Army && PlayerToPoint(4.0, playerid, 1569.8290,-1611.4229,13.3828))
{
MoveObject(lspdgate, 1590.270874, -1637.941162, 14.956207);
return 1;
}
if(gTeam[playerid] == Cop || gTeam[playerid] == Fbi || gTeam[playerid] == Army && PlayerToPoint(4.0, playerid, 1534.1281,-1627.6967,13.3828))
{
MoveObject(lspdgate2, 1564.821899, -1610.583008, 9.531290);
return 1;
}