SetVehicleParamsEx problems
#7

Try
PHP код:

stock GetClosestVehicle
(playeridFloat:range)
{
    new     
Float:p_X;
    new     
Float:p_Y;
    new     
Float:p_Z;
    new     
Float:Vpos[3];
    
    
GetPlayerPos(playeridp_Xp_Yp_Z);
    for(new 
vehicleid=1vehicleid MAX_VEHICLESvehicleid++)
    {
        
GetVehiclePos(vehicleid,Vpos[0],Vpos[1],Vpos[2]);
        if(
IsPlayerInRangeOfPoint(playerid,range,Vpos[0],Vpos[1],Vpos[2]))
        {
            return 
vehicleid;
        }
    }
    return 
0;

Reply


Messages In This Thread
SetVehicleParamsEx problems - by TheAngryBird - 20.05.2017, 04:44
Re: SetVehicleParamsEx problems - by DobbysGamertag - 20.05.2017, 05:49
Re: SetVehicleParamsEx problems - by StrikerZ - 20.05.2017, 06:02
Re: SetVehicleParamsEx problems - by TheAngryBird - 20.05.2017, 06:12
Re: SetVehicleParamsEx problems - by StrikerZ - 20.05.2017, 06:28
Re: SetVehicleParamsEx problems - by TheAngryBird - 20.05.2017, 06:31
Re: SetVehicleParamsEx problems - by StrikerZ - 20.05.2017, 06:33
Re: SetVehicleParamsEx problems - by TheAngryBird - 20.05.2017, 06:38
Re: SetVehicleParamsEx problems - by StrikerZ - 20.05.2017, 06:43
Re: SetVehicleParamsEx problems - by Vince - 20.05.2017, 07:34

Forum Jump:


Users browsing this thread: 3 Guest(s)