Convoy Trucking

Server related => Suggestions => Locked & Closed Suggestions => Topic started by: Deff on January 05, 2013, 15:41

Title: Dipper (headlights on/off to be specific)
Post by: Deff on January 05, 2013, 15:41
My suggestion is for a dipper.
By pressing some key for example "L", headlights get ON/OFF thrice or more times, like a signal used in night. (dipper)
Title: Re: Dipper (headlights on/off to be specific)
Post by: Supreme on January 05, 2013, 15:42
I have using a keybinder put "t/lights~" at numpad1 and when I press it 2/4x it flashes, also tested ingame  ;D
Title: Re: Dipper (headlights on/off to be specific)
Post by: Ethan on January 05, 2013, 15:47
so you want something like the turn signal, but for the headlights? 
Title: Re: Dipper (headlights on/off to be specific)
Post by: Deff on January 05, 2013, 15:54
Quote from: Ethan on January 05, 2013, 15:47
so you want something like the turn signal, but for the headlights? 

Yeah something like that,
flashing signal, which is used by vehicles its generally done to signal the incoming vehicle to "stop because I can't apply brakes", mostly done while overtaking or when in wrong lane.

To know more about it:
http://en.wikipedia.org/wiki/Headlight_flashing
Title: Re: Dipper (headlights on/off to be specific)
Post by: $nake on January 05, 2013, 16:05
not bad idea :) anyway there's no "thrice" word, just three times :P
Title: Re: Dipper (headlights on/off to be specific)
Post by: sardarji on January 05, 2013, 16:45
Nice idea +1
Title: Re: Dipper (headlights on/off to be specific)
Post by: nyolc8 on January 05, 2013, 17:16
This would be helpful in many situations. +1
Example: I want to let somebody go first in an intersection when we got to it in the same time.
Title: Re: Dipper (headlights on/off to be specific)
Post by: AcTrOsS on January 05, 2013, 18:17
+1 nice idea. :D
keybinder makes lag for me :/
Title: Re: Dipper (headlights on/off to be specific)
Post by: Chris_Spencer on January 05, 2013, 19:19
+1 sounds like a good idea and could be useful :) I've wanted to flash my lights before to let someone go before me but obviously couldn't unless I used /lights a few times in a row which can be a pain.
Title: Re: Dipper (headlights on/off to be specific)
Post by: DJ_Smashon on January 05, 2013, 19:30
We use the headlight flash to say that they have no lights on(middle of day) or forgot the headlights on(evning/night).
Title: Re: Dipper (headlights on/off to be specific)
Post by: Daniel[COL] on January 05, 2013, 19:35
:notbad:
also can be used for a car waiting in the road....
flashing every 2 seconds, to warn other players, low speed or /fix(ing)
(sorry for my english, if there is any mistake :D )
Title: Re: Dipper (headlights on/off to be specific)
Post by: Gameboy on January 05, 2013, 23:45
Quote from: sardarji on January 05, 2013, 16:45
Nice idea +1
Title: Re: Dipper (headlights on/off to be specific)
Post by: DeHavilland on January 06, 2013, 00:02
+1 :)
Title: Re: Dipper (headlights on/off to be specific)
Post by: Supra on January 06, 2013, 00:10
Amd the point of it is?
Title: Re: Dipper (headlights on/off to be specific)
Post by: Storm94 on January 06, 2013, 08:50
"L" is not a key that can be scripted for in SAMP. Also $nake, "thrice" is a word.
Title: Re: Dipper (headlights on/off to be specific)
Post by: Deff on January 06, 2013, 12:57
Quote from: Storm94 on January 06, 2013, 08:50
"L" is not a key that can be scripted for in SAMP.

Hmm yeah!
maybe a "C" because no one would crouch ingame inside a vehicle.

but it doesn't really matter what it is though
Title: Re: Dipper (headlights on/off to be specific)
Post by: George on January 06, 2013, 20:33
This is what i was going to suggest so a big +1
Title: Re: Dipper (headlights on/off to be specific)
Post by: Storm94 on January 07, 2013, 08:32
Quote from: Deff on January 06, 2013, 12:57
Quote from: Storm94 on January 06, 2013, 08:50
"L" is not a key that can be scripted for in SAMP.

Hmm yeah!
maybe a "C" because no one would crouch ingame inside a vehicle.

but it doesn't really matter what it is though
"C" cannot be scripted for inside a vehicle.

http://wiki.sa-mp.com/wiki/GetPlayerKeys
Title: Re: Dipper (headlights on/off to be specific)
Post by: Deff on January 07, 2013, 09:58
Quote from: Storm94 on January 07, 2013, 08:32
Quote from: Deff on January 06, 2013, 12:57
Quote from: Storm94 on January 06, 2013, 08:50
"L" is not a key that can be scripted for in SAMP.

Hmm yeah!
maybe a "C" because no one would crouch ingame inside a vehicle.

but it doesn't really matter what it is though
"C" cannot be scripted for inside a vehicle.

http://wiki.sa-mp.com/wiki/GetPlayerKeys

What about OnPlayerKeyStateChange


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_CROUCH))
{
if (IsPlayerInAnyVehicle(playerid))
{
//lights on/off 3 times here
}
}
return 1;
}
Title: Re: Dipper (headlights on/off to be specific)
Post by: Storm94 on January 07, 2013, 10:27
Quote from: Deff on January 07, 2013, 09:58
Quote from: Storm94 on January 07, 2013, 08:32
Quote from: Deff on January 06, 2013, 12:57
Quote from: Storm94 on January 06, 2013, 08:50
"L" is not a key that can be scripted for in SAMP.

Hmm yeah!
maybe a "C" because no one would crouch ingame inside a vehicle.

but it doesn't really matter what it is though
"C" cannot be scripted for inside a vehicle.

http://wiki.sa-mp.com/wiki/GetPlayerKeys

What about OnPlayerKeyStateChange


public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_CROUCH))
{
if (IsPlayerInAnyVehicle(playerid))
{
//lights on/off 3 times here
}
}
return 1;
}

Only problem is that "KEY_CROUCH" is mapped to "H/CapsLock" when you're in a vehicle. It won't even recognize that you're pressing "C"
Title: Re: Dipper (headlights on/off to be specific)
Post by: Deff on January 07, 2013, 12:14
hmm well, then maybe KEY_NO (N) for now...

I hope future versions of samp clients and servers have inbuilt plugins to detect keyboard keys.
Title: Re: Dipper (headlights on/off to be specific)
Post by: Tyler on January 07, 2013, 15:46
KEY_NO is being used.
Title: Re: Dipper (headlights on/off to be specific)
Post by: Calvingreen17. on January 07, 2013, 15:50
Quote from: $nake on January 05, 2013, 16:05
not bad idea :) anyway there's no "thrice" word, just three times :P

thrice is indeed a word.

On Topic: Meh. It's pretty cool.
Title: Re: Dipper (headlights on/off to be specific)
Post by: mick88 on January 07, 2013, 19:36
Unfortunately L is not a detectable key in sa-mp. But you can use a binder to bind L to /lights command