Need help with my vehicle lights - 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: Need help with my vehicle lights (
/showthread.php?tid=263021)
Need help with my vehicle lights -
Shidony - 20.06.2011
Hi everybody !
Today my problem is that i have only one vehicle light which is on when i putt lights on. Screen:
This is the front but in the back, it's on:
Can you help me ?
My Pawno script:
pawn Код:
else if(newkeys == KEY_SUBMISSION)
  {
    if(pState == 2) // En voiture
    {
      new engine,lights,alarm,doors,bonnet,boot,objective;
      new tmpCarId = GetPlayerVehicleID(playerid);
      GetVehicleParamsEx(tmpCarId,engine,lights,alarm,doors,bonnet,boot,objective);
      if(lights == 0)
      {
         SetVehicleParamsEx(tmpCarId,engine,1,alarm,doors,bonnet,boot,objective);
      }
      else
      {
         SetVehicleParamsEx(tmpCarId,engine,0,alarm,doors,bonnet,boot,objective);
      }
      return 1;
    }
    else
    {
      return 1;
    }
  }
PS: Sorry for my bad english i'm french so explain in a easy english please
EDIT: Resolved, it was and "UpdateVehicleDamageStatus"
Re: Need help with my vehicle lights -
Vince - 20.06.2011
http://forum.sa-mp.com/showthread.ph...=vehicle+light
No need to make another topic.
pawn Код:
SetVehicleParamEx(vehid,engine,encode_lights(1,1,1,1),doors,bonnet,boot,objective);