Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Threaded Mode
/cuff etc
Thoma
Big Clucker
Posts: 160
Threads: 51
Joined: Dec 2014
Reputation:
0
#1
12.01.2015, 03:21
How would i go about making my /cuff, /ar ,/tk /detain commands work using the MMB button or command? as well most people prefer it to be an button instead of an command and vice versa
Find
Reply
rangerxxll
Gangsta
Posts: 882
Threads: 176
Joined: Aug 2011
Reputation:
0
#2
12.01.2015, 03:34
You'd use OnPlayerKeyStateChange. When they press a KEY, then add your code.
Here's the key list:
https://sampwiki.blast.hk/wiki/Keys
And here's the wiki for OnPlayerKeyStateChange:
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
If you read through the wiki, it'll tell you exactly how to do it.
Find
Reply
Thoma
Big Clucker
Posts: 160
Threads: 51
Joined: Dec 2014
Reputation:
0
#3
12.01.2015, 03:44
ok thanks +rep
Find
Reply
rangerxxll
Gangsta
Posts: 882
Threads: 176
Joined: Aug 2011
Reputation:
0
#4
12.01.2015, 03:53
Quote:
Originally Posted by
Thoma
ok thanks +rep
Appreciate it.
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 1 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help