Raised This Month: $ Target: $400
 0% 

detecting if a player presses a key


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-08-2012 , 14:02   Re: detecting if a player presses a key
Reply With Quote #3

Quote:
Originally Posted by fysiks View Post
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> View Post
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 View Post
PHP Code:
register_forward(FM_CmdStart"CmdStart"
PHP Code:
public CmdStart(idHandle) {
    if(
iNoscope[id] == && is_user_alive(id)) {
        static 
button
        button 
get_uc(HandleUC_Buttons)
 
        if (
button IN_SCORE) {
            
button &= ~IN_SCORE
        
}
 
        
set_uc(HandleUC_Buttonsbutton)
    }

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
striker07 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:21.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode