Light States? - 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: Light States? (
/showthread.php?tid=149751)
Light States? -
(.Aztec); - 23.05.2010
Well, the wiki for
UpdateVehicleDamageStatus has the status for only tires. What I would like to know is, what status turns off the lights, and what status turns on the lights? I've tried 0, and 15. Both of them do nothing for some reason. Maybe i'm doing it wrong? :\
pawn Код:
else if(PRESSED(KEY_SUBMISSION))
{
new vehicleid, panels, doors, lights, tires;
if(statuslight == 0)
{
vehicleid = GetPlayerVehicleID(playerid);
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, 15, tires);
statuslight = 1;
}
if(statuslight == 1)
{
GetVehicleDamageStatus(vehicleid, panels, doors, lights, tires);
UpdateVehicleDamageStatus(vehicleid, panels, doors, 0, tires);
statuslight = 0;
}
}
And of course at the top, I have:
Any help is much appreciated,
Sky.
Re: Light States? -
boelie - 23.05.2010
Make sure its night at your gamemode
Re: Light States? -
(.Aztec); - 23.05.2010
Quote:
Originally Posted by boelie
Make sure its night at your gamemode
|
I've already done that, it's pretty obvious. =p
Re: Light States? -
Nero_3D - 23.05.2010
Re: Server update: 0.3a R5
Re: Light States? -
boelie - 23.05.2010
Quote:
Originally Posted by Sky4D
Quote:
Originally Posted by boelie
Make sure its night at your gamemode
|
I've already done that, it's pretty obvious. =p
|
Iknow XD ive seen players who forgot that though
Re: Light States? -
imosek - 23.05.2010
can you give me the whole script?
Re: Light States? -
(.Aztec); - 23.05.2010
Quote:
Originally Posted by ♣ Joker ♠
|
Thanks a bunch. =)
Quote:
Originally Posted by imosek
can you give me the whole script?
|
That is the whole script, that is involved with that function..
Re: Light States? -
imosek - 23.05.2010
you do something like that when you press a key that will open doors and bonnet at once? you know ... for tuning?
PS...
Please your entire script with that function ..

pop up as I am doing the same mistakes ....
Re: Light States? -
(.Aztec); - 23.05.2010
Quote:
Originally Posted by imosek
you do something like that when you press a key that will open doors and bonnet at once? you know ... for tuning?
PS...
Please your entire script with that function ..  pop up as I am doing the same mistakes ....
|
Eh.. it's intertwined into everything on my script, sorry.