03.06.2012, 19:52
No me funciono, dice que no soy mecanico, ese if(IsAtMecanicosx es donde describe las coordenadas del comando.
public IsAtMecanicosx(playerid)
{
if(IsPlayerConnected(playerid))//puse artos 999999 para agrandar el rango para todo el mapa pero no alcanzo.
{
if(PlayerToPoint(9999999999999999999,playerid,1641 .2056,-2139.6641,13.4100))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999999,playerid,-1528.1193,301.4527,53.1754))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999999999999,pla yerid,613.0524,-124.2267,997.9922))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999999,playerid,-1498.4117,728.2124,7.3706))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999,playerid,-1502.0536,737.0365,7.3706))
{
return 1;
}
}
return 0;
}
public IsAtMecanicosx(playerid)
{
if(IsPlayerConnected(playerid))//puse artos 999999 para agrandar el rango para todo el mapa pero no alcanzo.
{
if(PlayerToPoint(9999999999999999999,playerid,1641 .2056,-2139.6641,13.4100))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999999,playerid,-1528.1193,301.4527,53.1754))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999999999999,pla yerid,613.0524,-124.2267,997.9922))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999999,playerid,-1498.4117,728.2124,7.3706))
{
return 1;
}
else if(PlayerToPoint(99999999999999999999,playerid,-1502.0536,737.0365,7.3706))
{
return 1;
}
}
return 0;
}

