if(strcmp("/mv", cmdtext, true, 10) ==0)
{
if(isPlayerAnAdmin(playerid,5))
if(IsPlayerInRangeOfPoint(playerid,12,322.19921875, -1183.099609375, 71.300003051758))
{
if(tGateopen == 0)
{
MoveObject(tGate,322.19921875, -1183.099609375, 60.300003051758,3);
tGateopen = 1;
return 1;
}
else if(tGateopen == 1)
{
MoveObject(tGate,322.19921875, -1183.099609375, 71.300003051758,3);
tGateopen = 0;
return 1;
}
if(lGateopen == 0)
{
MoveObject(lGate,275, 189.39999389648, 1008.90002441418,3);
lGateopen = 1;
return 1;
}
else if(lGateopen == 1)
{
MoveObject(lGate,275, 189.39999389648, 1008.90002441418,3);
lGateopen = 0;
return 1;
}
}
}
versuchs mal^^