#1

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
Reply
#2

Dont think you can turn on the lights at daytime, anyways:

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Reply
#3

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
Reply
#4

It will help you, read the link he gave you. After that, if you need more help, post here.
Reply
#5

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
Reply
#6

Try:

pawn Код:
CMD:lights(playerid, params[])
{
                SetVehicleParamsEx(vehicleid,engine,1,alarm,doors,bonnet,boot,objective);
                return 1;
}
Reply
#7

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
Reply
#8

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
Reply
#9

it doesnt work (
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)