SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 29/11/2010, 08:50 AM   #1
Johnny_Xayc
Huge Clucker
 
Johnny_Xayc's Avatar
 
Join Date: Aug 2009
Posts: 322
Reputation: 0
Thumbs down [BUG] Lights

When Vehicle(don't Boats) in water then vehicle lights don't off or on,if Lights on then they stay on(SetVehicleParamsEx don't work on Lights) similarly when they off...Please Fix it...


p.s. And how to create particles?
Johnny_Xayc is offline  
Old 29/11/2010, 09:14 AM   #2
Krypton
Little Clucker
 
Join Date: Jan 2010
Posts: 43
Reputation: 0
Default Re: [BUG] Lights

Code:
if(!strcmp(cmdtext, "/lighton", true))
    {
     new engine,lights,alarm,doors,bonnet,boot,objective;
     new vid = GetPlayerVehicleID(playerid);
     GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
     SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
     }
    if(!strcmp(cmdtext, "/lightoff", true))
    {
     new engine,lights,alarm,doors,bonnet,boot,objective;
     new vid = GetPlayerVehicleID(playerid);
     GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
     SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
     return 1;
     }
Krypton is offline  
Old 29/11/2010, 09:20 AM   #3
Retardedwolf
High-roller
 
Retardedwolf's Avatar
 
Join Date: Jun 2009
Posts: 1,599
Reputation: 60
Default Re: [BUG] Lights

Particles are objects.

I don't get you, when vehicles have their lights on when they fall into the water they won't be able to change anymore is that the point you're trying to make?
Retardedwolf is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Flashing car lights martynas Help Archive 11 27/09/2010 11:22 AM
Lights On/Off? Ihsan_Cingisiz Help Archive 1 15/08/2010 12:03 AM
lights... GangBang Help Archive 4 20/10/2009 09:11 PM
alarm lights/flash lights CAR Help Archive 2 23/07/2009 02:53 PM


All times are GMT. The time now is 11:13 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.