SA-MP Forums Archive
Getting vehicle params - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Getting vehicle params (/showthread.php?tid=570338)



Getting vehicle params - izeatfishz - 09.04.2015

Okay, my breakin is detecting a close car, now how can I check that car's params using GetVehicleParamsEx?

Код:
native IsValidVehicle(vehicleid);

CMD:carbreakin(playerid, params[])
{
    new engine, lights, alarm, doors, bonnet, boot, objective;
	new
		Float: vX,
		Float: vY,
		Float: vZ
	;

   	for(new i = 0; i != MAX_VEHICLES; i++)
	{
		if (!IsValidVehicle(i))
			continue;

		GetVehiclePos(i, vX, vY, vZ);
  		if(IsPlayerInRangeOfPoint(playerid, 5.0, vX, vY, vZ))
    	{
        	SendClientMessage(playerid, COLOR_LIGHTRED, "You're near a car and the breakin bit needs adding");
        	break;
    	}
    	else
    	{

    	}
	}
	return 1;
}



Re: Getting vehicle params - izeatfishz - 09.04.2015

:[ any help?