/cuff etc - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /cuff etc (
/showthread.php?tid=556915)
/cuff etc -
Thoma - 12.01.2015
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
Re: /cuff etc -
rangerxxll - 12.01.2015
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.
Re: /cuff etc -
Thoma - 12.01.2015
ok thanks +rep
Re: /cuff etc -
rangerxxll - 12.01.2015
Quote:
Originally Posted by Thoma
ok thanks +rep
|
Appreciate it.