...Hey - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: ...Hey (
/showthread.php?tid=220025)
...Hey -
MetalScript - 02.02.2011
Anyways an easy question for you guys,
Is there any way i can use the GetVehicleParamsEx, to know that if vehicle has its light on or off?
GetVehicleParamsEx(vehicleid,engine,lights,alarm,d oors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors, bonnet,boot,objective);
For Example
Код:
if(GetVehicleParamsEx(vehicleid,engine,1,alarm,doors,bonnet,boot,objective))
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,0,lights,alarm,doors,bonnet,boot,objective);
return 1;
}
else if(GetVehicleParamsEx(vehicleid,engine,0,alarm,doors,bonnet,boot,objective))
{
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vehicleid,1,lights,alarm,doors,bonnet,boot,objective);
return 1;
}
Something like this?
Re: ...Hey -
Krx17 - 02.02.2011
pawn Код:
GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);
if(lights == 1)
{
//Lights on
}
else
{
//Lights off
}
Re: ...Hey -
MetalScript - 02.02.2011
Yeah, thanks worked