Help -
Dan_Barocu - 14.05.2011
hello im dan i want a command like :/lightson,/lightoff plz can someone help me Only Lights and i want to open them even daytime and tell me where to put it plz
Re: Help -
Wesley221 - 14.05.2011
Dont think you can turn on the lights at daytime, anyways:
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Re: Help -
Dan_Barocu - 14.05.2011
this is not help try be more helpfull before giving me this **** plz can u try to make me a command plz + some servers you can turn on the lights even daytime
Re: Help -
Georgelopez1 - 14.05.2011
It will help you, read the link he gave you. After that, if you need more help, post here.
Re: Help -
LetsOWN[PL] - 14.05.2011
Dan_Barocu, you can:
1. Wait, untill someone will waste his time and give you full code..
2. You can make your pawn skills better by reading thread
https://sampwiki.blast.hk/wiki/SetVehicleParamsEx (as Wesley221 wrote), and try do it for yourself by yourself.
Greetz
Re: Help -
Georgelopez1 - 14.05.2011
Try:
pawn Код:
CMD:lights(playerid, params[])
{
SetVehicleParamsEx(vehicleid,engine,1,alarm,doors,bonnet,boot,objective);
return 1;
}
Re: Help -
Dan_Barocu - 14.05.2011
sorry im from diffrent country i dont get it plz be more helpfull

make an pwn plz if youre a pro at scripting you would never make a bigg fuss
Re: Help -
jNkk - 14.05.2011
What is so hard to understand?
He gave you the easiest method ever, check that link and
read that, or why don't you use ******Translate?
I will make the code for you, just wait. [Edit down]
Put this after
#include <a_samp> or something like that
pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
Now , this is for a command :
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/lightson", cmdtext, true, 10) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,1,alarm,doors,bonnet,boot,objective);
return 1;
}
if (strcmp("/lightsoff", cmdtext, true, 10) == 0)
{
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,engine,0,alarm,doors,bonnet,boot,objective);
return 1;
}
return 0;
}
-jNkk
Re: Help -
Dan_Barocu - 14.05.2011
it doesnt work

(