SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 14/01/2019, 01:41 AM   #1
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
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, 03:41 AM   #2
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 824
Reputation: 130
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.
__________________
Developer, @ls-rp.com

Former Beta Tester

Kane is offline   Reply With Quote
Old 14/01/2019, 11:44 AM   #3
KevTheJoker
Big Clucker
 
KevTheJoker's Avatar
 
Join Date: Dec 2018
Location: South America
Posts: 80
Reputation: 7
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 REYO Screenshots and Videos 11 27/12/2018 06:29 PM
WANTED: Scripters for Wild Gaming Ramzi101 Server Support 2 30/06/2017 09:23 PM
[Map] Wild Tree Admin House jotan. Maps 4 10/01/2012 05:37 PM
A wild idea Johnson_boy Scripting Help 0 27/12/2011 09:51 PM
binding IPs potato Server Support 3 16/06/2010 11:57 AM


All times are GMT. The time now is 07:47 PM.


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