SA-MP Forums Archive
Lights problem. +REP who ever helps me - 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: Lights problem. +REP who ever helps me (/showthread.php?tid=426339)



Lights problem. +REP who ever helps me - LuckyPlaya` - 28.03.2013

How can i find and delete/disable that thing in script that automaticly turn the lights on,and off when you get out of vehicle?


Re: Lights problem. +REP who ever helps me - Omirrow - 28.03.2013

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    SetVehicleParamsEx(vehicleid,engine,0, alarm, doors, bonnet, boot, objective); // 0 turn off
    return 1;
}



Re: Lights problem. +REP who ever helps me - LuckyPlaya` - 28.03.2013

I dont have that row...or i need to put that?


Re: Lights problem. +REP who ever helps me - Jstylezzz - 28.03.2013

ManualVehicleEngineAndLights();
If this is in your script, most likely under OnGameModeInit, they won't go automatically, delete that line to make them go automatically.


Re: Lights problem. +REP who ever helps me - Omirrow - 28.03.2013

sorry , misunderstood


Re: Lights problem. +REP who ever helps me - Omirrow - 28.03.2013

ManualVehicleEngineAndLights ();

This allows you to make your script.


Re: Lights problem. +REP who ever helps me - LuckyPlaya` - 28.03.2013

Thank you...bouth of you get +REP!