Ayuda Objetos,Vehiculos,Funcion...
#4

Podrias usar este callback:
pawn Код:
stock IsVehicleInRangeOfPoint(vehicleid, Float:radi, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetVehiclePos(vehicleid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
    {
        return 1;
    }
    return 0;
}
Poniendo las cordenadas del Objeto con una distancia mas o menos igual para que abarque todo el objeto..
saludos.
Reply


Messages In This Thread
Ayuda Objetos,Vehiculos,Funcion... - by OTACON - 30.03.2013, 17:52
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by Fluid016 - 30.03.2013, 18:06
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by NeuZz - 30.03.2013, 23:29
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by xDarkuzSx - 31.03.2013, 03:28
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by OTACON - 31.03.2013, 06:26
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by xDarkuzSx - 31.03.2013, 07:19
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by OTACON - 31.03.2013, 07:36
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by xDarkuzSx - 31.03.2013, 07:39
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by OTACON - 31.03.2013, 08:11
Respuesta: Ayuda Objetos,Vehiculos,Funcion... - by xDarkuzSx - 31.03.2013, 08:19

Forum Jump:


Users browsing this thread: 1 Guest(s)