Hallo,
also will es ganz kurz halten. Habe einen Bug.
Hier der Command:
ocmd:armygate(playerid, params[])
{
#pragma unused params
if(!IsPlayerCop(playerid))return 1;
if(IsPlayerInRangeOfPoint(playerid,8,282.98648, 1827.28906, 16.62900))
{
if(armygatestatus[0] == 1)
{
MoveObject(armygate[0],282.98648, 1827.28906, 16.62900+7,3);
armygatestatus[0] = 2;
}
else if(armygatestatus[0] == 2)
{
MoveObject(armygate[0],282.98648, 1827.28906, 16.62900,3);
armygatestatus[0] = 1;
}
}
if(IsPlayerInRangeOfPoint(playerid,8,129.26016, 1938.73828, 18.35010))
{
if(armygatestatus[1] == 1)
{
MoveObject(armygate[1],129.26016, 1938.73828, 18.35010+7,3);
armygatestatus[1] = 2;
}
else if(armygatestatus[1] == 2)
{
MoveObject(armygate[1],129.26016, 1938.73828, 18.35010,3);
armygatestatus[1] = 1;
}
}
return 1;
}