SA-MP Forums Archive
How to make the lights on at day ? - 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: How to make the lights on at day ? (/showthread.php?tid=232254)



How to make the lights on at day ? - Shidony - 27.02.2011

The question is in the title. I know it is possible beacause i play on a RP server wich have that.

I wish you have a nice day


Re: How to make the lights on at day ? - Bogdanovic - 27.02.2011

You mean SetWeather(ID) & SetWorldTime(ID)?


Re: How to make the lights on at day ? - xRyder - 27.02.2011

I think that it's not possible, since I have never seen something like that. :/
Can you send me an IP of a server in PM?


Re : How to make the lights on at day ? - Shidony - 27.02.2011

It is a french server and you need to register by sending your motivation

But i can show you a screen. I go do that

EDIT: screen


You can see it is the day and 11h48 ( i just take the screen ) and the lights are on


Re: How to make the lights on at day ? - Ash. - 27.02.2011

You can do something like this, not sure if it works in the day though;

pawn Код:
new a, b, c, d, e, f, g;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), a, b, c, d, e, f, g);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), a, 1, c, d, e, f, g);



Re: How to make the lights on at day ? - Rolyy - 27.02.2011

I guess he means "How to turn on the street lights/lamppost on daylight".


Re: How to make the lights on at day ? - Ash. - 27.02.2011

My bad.

Erm, SetWorldTime maybe?


Re: How to make the lights on at day ? - Abbott - 27.02.2011

I don't think it's possible to make street lights on during the day, unless you manually script a light object on every poll in SA.


Re : How to make the lights on at day ? - Shidony - 27.02.2011

No, i need car lights go see my screen 2 posts ago


Re: How to make the lights on at day ? - Ash. - 27.02.2011

Quote:
Originally Posted by funky1234
Посмотреть сообщение
You can do something like this, not sure if it works in the day though;

pawn Код:
new a, b, c, d, e, f, g;
GetVehicleParamsEx(GetPlayerVehicleID(playerid), a, b, c, d, e, f, g);
SetVehicleParamsEx(GetPlayerVehicleID(playerid), a, 1, c, d, e, f, g);
Try this for car lights?