SA-MP Forums

Go Back   SA-MP Forums > SA-MP Server > Server Support

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 02:41 AM   #1
KevTheJoker
Little Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Posts: 17
Reputation: 0
Default Wild thought | A key binding filterscript

As we all know, typing commands can be time consuming. Instead of typing /engine to start and stop the engine of a vehicle or using /lights to turn the lights on and off over and over, you can simply hit a key and it'll do the job for you. But.. the thing is.. where is this filterscript located?

I've checked around but found nothing beneficial. I've already looked at this post: https://forum.sa-mp.com/showthread.php?t=331506 but it's not what I'm looking for. I've even checked out the keys and stuff at http://wiki.sa-mp.com/wiki/GetPlayerKeys but the only thing that I need is a ready-made filterscript which I just need to insert the keys and specific commands.

In case a thread like this was made before, I apologize. Btw.. thanks in advance guys.
KevTheJoker is offline   Reply With Quote
Old 14/01/2019, 04:41 AM   #2
Kane_
Beta Tester
 
Kane_'s Avatar
 
Join Date: Sep 2012
Posts: 810
Reputation: 116
Default Re: Wild thought | A key binding filterscript

OnPlayerKeyStateChange is what you're looking for.

See: https://wiki.sa-mp.com/wiki/OnPlayerKeyStateChange

Also, wrong section. Use the Scripting Help section next time.
__________________
Los Santos Roleplay - Development team
@ls-rp.io
Kane_ is offline   Reply With Quote
Old 14/01/2019, 12:44 PM   #3
KevTheJoker
Little Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Posts: 17
Reputation: 0
Default Re: Wild thought | A key binding filterscript

Yeap, this is the bad boi I've been looking for. Thanks.
KevTheJoker is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[wild west] Longcreek ReyoDahBoss Screenshots and Videos 12 27/12/2018 07:29 PM
WANTED: Scripters for Wild Gaming Ramzi101 Server Support 2 30/06/2017 10:23 PM
[Map] Wild Tree Admin House jotan. Maps 4 10/01/2012 06:37 PM
A wild idea Johnson_boy Scripting Help 0 27/12/2011 10:51 PM
binding IPs potato Server Support 3 16/06/2010 12:57 PM


All times are GMT. The time now is 10:04 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.