Quote:
Originally Posted by fysiks
That's not true, we never know if a player has pushed the tab key. We only detect the command sent to the server for the scoreboard, "+showscores". Also, we don't detect the "use key" we detect the command sent to the server, "+use".
This has been asked a million times and the answer hasn't changed.
|
yes thats what i ment, just a poor explenation, had to retype my entire post becous i accidently pressed return..
Quote:
Originally Posted by <VeCo>
You can't check if the user has binded a command to a key and you can't restore his bind after changing it, so it's slowhacking, unless you do it with the user's agreement (like menu asking if he wants it to be changed).
|
yes ok that's what i need, but then how can I bind an action to the players key if the player choosed yes and agreed with the quick bind?
Quote:
Originally Posted by Napoleon_be
PHP Code:
register_forward(FM_CmdStart, "CmdStart")
PHP Code:
public CmdStart(id, Handle) { if(iNoscope[id] == 1 && is_user_alive(id)) { static button button = get_uc(Handle, UC_Buttons) if (button & IN_SCORE) { button &= ~IN_SCORE } set_uc(Handle, UC_Buttons, button) } }
this blocks the client going into the scoreboard as far as i know.
|
Ok, so what is the meaning of the static button in this block? the key that sends a command to the server? (if so wich command?) or the command itself? (if so wich command?)
could you explain the get_uc and set_uc native a lil better via this block? the info in the funcwiki is everything but usefull