Wenn ich /fauf eingebe öffnet sich nur ein tor egal wo ich steht genauso wie wenn ich /fzu mache was ist falsch ?
//--------------[ OCMD ]-------------------//
ocmd:fauf(playerid,params[])
{
if(!IsPlayerInRangeOfPoint(playerid,0.4,1798.0498046875, -1094.9951171875, 24.784185409546))
{
MoveObject(fdgarage[0],1798.0498046875, -1094.9951171875, 24.784185409546-8,0.3);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,0.4,1746.5101318359, -1095.3505859375, 24.784185409546))
{
MoveObject(fdgarage[1],1746.5101318359, -1095.3505859375, 24.784185409546-8,0.3);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,0.4,1763.9534912109, -1095.142578125, 24.784185409546))
{
MoveObject(fdgarage[2],1763.9534912109, -1095.142578125, 24.784185409546-8,0.3);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,0.4,1781.044921875, -1094.9892578125, 24.784185409546))
{
MoveObject(fdgarage[3],1781.044921875, -1094.9892578125, 24.784185409546-8,0.3);
return 1;
}
return SendClientMessage(playerid,ROT,"Du bist nicht in der nähe vom Tor");
}
ocmd:fzu(playerid,params[])
{
if(!IsPlayerInRangeOfPoint(playerid,0.4,1798.0498046875, -1094.9951171875, 24.784185409546))
{
MoveObject(fdgarage[0],1798.0498046875, -1094.9951171875, 24.784185409546,0.3);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,0.4,1746.5101318359, -1095.3505859375, 24.784185409546))
{
MoveObject(fdgarage[1],1746.5101318359, -1095.3505859375, 24.784185409546,0.3);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,0.4,1763.9534912109, -1095.142578125, 24.784185409546))
{
MoveObject(fdgarage[2],1763.9534912109, -1095.142578125, 24.784185409546,0.3);
return 1;
}
if(!IsPlayerInRangeOfPoint(playerid,0.4,1781.044921875, -1094.9892578125, 24.784185409546))
{
MoveObject(fdgarage[3],1781.044921875, -1094.9892578125, 24.784185409546,0.3);
return 1;
}
return SendClientMessage(playerid,ROT,"Du bist nicht in der nähe vom Tor");
}
(errors bekomme ich keine)
// EDIT ich habs gelöst ich durfte nicht !isPlayerInRange ich musste isPlayerInRange:P