Moin Leute ,
Ich wollt nur mal schnell fragen wo ich die if abfrage rein hauen soll für fraktione / oder ifisplayeradmin hab versucht aber dann gehen die tore nit mehr
if(strcmp("/mv", cmdtext, true, 10) ==0)
{
if(isPlayerAnAdmin(playerid,5))
if(IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758) //ANGELO TOR
|| IsPlayerInRangeOfPoint(playerid,12,275, 189.39999389648, 1008.9000244141)//LSPD TOR drine
|| IsPlayerInRangeOfPoint(playerid,4,255.599609375, 181.7998046875, 1002)//LSPD TOR drine
|| IsPlayerInRangeOfPoint(playerid,4,254.19999694824, 181.69999694824, 1002)//LSPD TOR DRINE
|| IsPlayerInRangeOfPoint(playerid,10, 1545.5, -1626.5999755859, 16.299999237061)//LSPD tor draußen
|| IsPlayerInRangeOfPoint(playerid,10, 1589.4000244141, -1638.1999511719, 14.5))//LSPD tor draußen garage
{
//[____________________Angelos Haus____________________]
if(tGateopen == 0 && IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758))
{
MoveObject(tGate,322.19921875, -1183.099609375, 60.300003051758,3);
tGateopen = 1;
return 1;
}
else if(tGateopen == 1 && IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758))
{
MoveObject(tGate,322.19921875, -1183.099609375, 71.300003051758,3);
tGateopen = 0;
return 1;
}
//[____________________LSPD DRINE ____________________]
if(lGateopen == 0 && IsPlayerInRangeOfPoint(playerid,12,275, 189.39999389648, 1008.9000244141))
{
MoveObject(lGate,275, 189.39999389648, 1000.9000244141,3);
lGateopen = 1;
return 1;
}
else if(lGateopen == 1 && IsPlayerInRangeOfPoint(playerid,12,275, 189.39999389648, 1008.9000244141))
{
MoveObject(lGate,275, 189.39999389648, 1008.9000244141,3);
lGateopen = 0;
return 1;
}
//[________________________________________________________]
if(aGateopen == 0 && IsPlayerInRangeOfPoint(playerid,4,255.599609375, 181.7998046875, 1002))
{
MoveObject(aGate,255.599609375, 181.7998046875, 995,3);
aGateopen = 1;
return 1;
}
else if(aGateopen == 1 && IsPlayerInRangeOfPoint(playerid,4,255.599609375, 181.7998046875, 1002))
{
MoveObject(aGate,255.599609375, 181.7998046875, 1002,3);
aGateopen = 0;
return 1;
}
//[________________________________________________________]
if(bGateopen == 0 && IsPlayerInRangeOfPoint(playerid,4,254.19999694824, 181.69999694824, 1002))
{
MoveObject(bGate,254.19999694824, 181.69999694824, 995,3);
bGateopen = 1;
return 1;
}
else if(bGateopen == 1 && IsPlayerInRangeOfPoint(playerid,4,254.19999694824, 181.69999694824, 1002))
{
MoveObject(bGate,254.19999694824, 181.69999694824, 1002,3);
bGateopen = 0;
return 1;
}
//[____________________LSPD DRaußen ____________________]
if(cGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 1545.5, -1626.5999755859, 16.299999237061))
{
MoveObject(cGate, 1545.5, -1626.5999755859, 4.299999237061,3);
cGateopen = 1;
return 1;
}
else if(cGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 1545.5, -1626.5999755859, 16.299999237061))
{
MoveObject(cGate, 1545.5, -1626.5999755859, 16.299999237061,3);
cGateopen = 0;
return 1;
}
//[________________________________________________________]
if(dGateopen == 0 && IsPlayerInRangeOfPoint(playerid,10, 1589.4000244141, -1638.1999511719, 14.5))
{
MoveObject(dGate, 1589.4000244141, -1638.1999511719, 4.5,3);
dGateopen = 1;
return 1;
}
else if(dGateopen == 1 && IsPlayerInRangeOfPoint(playerid,10, 1589.4000244141, -1638.1999511719, 14.5))
{
MoveObject(dGate, 1589.4000244141, -1638.1999511719, 14.5,3);
dGateopen = 0;
return 1;
}
}
}
Danke schon mal:)