Dipper (headlights on/off to be specific)

Started by Deff, January 05, 2013, 15:41

Deff

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)

Supreme

I have using a keybinder put "t/lights~" at numpad1 and when I press it 2/4x it flashes, also tested ingame  ;D

Ethan

so you want something like the turn signal, but for the headlights? 

Deff

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

$nake

not bad idea :) anyway there's no "thrice" word, just three times :P

sardarji



nyolc8

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.

AcTrOsS

+1 nice idea. :D
keybinder makes lag for me :/

Chris_Spencer

+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.
LAST SEEN
TOTAL TIME ON SERVER
SCORE
TRUCK LOADS
CONVOY SCORE
ACHIEVEMENTS
ARTIC
DUMPER
VAN
FUEL
CEMENT
ARRESTS
CARS STOLEN
COACH
PLANE
HELICOPTER
TOW TRUCK
LIMO
TRASH
ARMORED VAN
BURGLARIES
ARMORED VANS STOLEN
MISSIONS FAILED
OVERLOADED
FINES PAID
TOTAL SPENT ON FUEL
INTEREST EARNED
DISTANCE TRAVELLED
TIME IN JAIL
Quote from: mick88 on January 10, 2013, 13:28
Oh I forgot, you're in Australia, bottom right is your top left  ;)
facebook - http://www.facebook.com/chrisB463

DJ_Smashon

We use the headlight flash to say that they have no lights on(middle of day) or forgot the headlights on(evning/night).
A.K.A NaftaTorque
Old ID=9149

Daniel[COL]

: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 )

"I don't care what people think or say about me, I know who I am." -Jonathan Davis (KoRn)
[country]Colombia[/country] [country]Colombia[/country] :3 C O L O M B I A :3 [country]Colombia[/country] [country]Colombia[/country]

Gameboy


DeHavilland

[hide=Our Renault Dauphine]
80's

90's

2007

2014 with new team colour

[/hide]

Supra


Storm94

"L" is not a key that can be scripted for in SAMP. Also $nake, "thrice" is a word.

I'm back, bitches :D

[glow=#282828,10,500]"I dislike Apple, so no." -mick88
"$nake honestly you are one arrogant prick." -Shane0
"The rest of you who I could consider trolls, just go fuck yourself." -Joshy
"TheGame, All I have to say is you complain a lot, and you're probally gonna be an even more arrogant, pompous jackass after this." -RaceRX
"I have a suggestion: Repost this in a respectful manner without caps, silly colors and big fonts, and perhaps someone will give a fuck about your complaint." -mick88
[/glow]

Can't read my quotes? Stop using the white style.

Deff

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

George

This is what i was going to suggest so a big +1
[]

Storm94

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

I'm back, bitches :D

[glow=#282828,10,500]"I dislike Apple, so no." -mick88
"$nake honestly you are one arrogant prick." -Shane0
"The rest of you who I could consider trolls, just go fuck yourself." -Joshy
"TheGame, All I have to say is you complain a lot, and you're probally gonna be an even more arrogant, pompous jackass after this." -RaceRX
"I have a suggestion: Repost this in a respectful manner without caps, silly colors and big fonts, and perhaps someone will give a fuck about your complaint." -mick88
[/glow]

Can't read my quotes? Stop using the white style.

Deff

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;
}

Storm94

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"

I'm back, bitches :D

[glow=#282828,10,500]"I dislike Apple, so no." -mick88
"$nake honestly you are one arrogant prick." -Shane0
"The rest of you who I could consider trolls, just go fuck yourself." -Joshy
"TheGame, All I have to say is you complain a lot, and you're probally gonna be an even more arrogant, pompous jackass after this." -RaceRX
"I have a suggestion: Repost this in a respectful manner without caps, silly colors and big fonts, and perhaps someone will give a fuck about your complaint." -mick88
[/glow]

Can't read my quotes? Stop using the white style.

Deff

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.

Tyler



[23:19:46] (CB:16) Fish: thats going in my sig

Calvingreen17.

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.

Older and wiser

mick88

Unfortunately L is not a detectable key in sa-mp. But you can use a binder to bind L to /lights command