Re: HELPME setting a key 4 any cmd
Quote:
Originally Posted by Viveks326
(Post 2113716)
I wanna ask if for instance i have to set a key for a command like sentry_build so hw can i do so ?
|
You can't choose a key as such, you can choose a command that is sent to the server.
Quote:
Originally Posted by DavidJr
(Post 2113718)
With +Use button?
PHP Code:
public client_PreThink(iIndex)
{
new iButton = get_user_button(iIndex);
if (iButton == IN_USE) client_cmd(iIndex, "sentry_build");
}
|
A poor method. Also in most cases bitwise ops should be & not == , because your checking for a certain key press, not that key by alone ( with no others present ).
Quote:
Originally Posted by baws
(Post 2114047)
client_cmd don't work anymore i think.
|
It still works.
|