Posts: 3,004
Threads: 12
Joined: May 2011
I don't understand,you want to put a command in OnPlayerKeyStateChange ?
for what ?
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
I want to put my command created by ZCMD to OnPlayerKeyStateChange, so it will use this command when I press some key.
Posts: 415
Threads: 145
Joined: Oct 2013
Reputation:
0
at redirecting the command can I use cmd_majak(playerid, cmdtext); ? Becouse on my cmd im not using params but cmdtext COMMAND:majak(playerid,cmdtext[])
//Second question, how I can make so player when type /majak this command not work this way? Becouse I want to make this command only with hotkey
Posts: 1,801
Threads: 27
Joined: Mar 2009
Reputation:
0
You can use it exactly how I gave you the example.
Why ? Then, add the code directly at OnPlayerKeyStateChange, or make a function with that code and call it.