Raised This Month: $ Target: $400
 0% 

how to check CVAR (bind) ??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lucky109
Senior Member
Join Date: Jan 2005
Old 05-18-2007 , 09:03   how to check CVAR (bind) ??
Reply With Quote #1

how to check CVAR bind MOUSE1 make sure +attack ??
lucky109 is offline
_Master_
Senior Member
Join Date: Dec 2006
Old 05-18-2007 , 10:14   Re: how to check CVAR (bind) ??
Reply With Quote #2

please rephrase that
_Master_ is offline
sawce
The null pointer exception error and virtual machine bug
Join Date: Oct 2004
Old 05-18-2007 , 12:29   Re: how to check CVAR (bind) ??
Reply With Quote #3

You can't.
sawce is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 05-18-2007 , 14:32   Re: how to check CVAR (bind) ??
Reply With Quote #4

Code:
    new usercfg[33]
    get_user_info(id,"bind mouse1",usercfg,32)
    if(!equali(usercfg,"+attack")) {
        new player = get_user_userid(id)
        server_cmd("kick #%i",player)
}
lucky109 is offline
Old 05-18-2007, 17:04
_Master_
This message has been deleted by _Master_. Reason: I won't even start
kmal2t
BANNED
Join Date: Apr 2006
Old 05-18-2007 , 17:40   Re: how to check CVAR (bind) ??
Reply With Quote #5

You can't check to see if mouse1 is bound to +attack because that is client side, meaning it is never sent to the server (where amx is). AMXX only gets that you're IN_ATTACK cuz it was sent to the server.

Getting the bind information would require getting information from the client side i.e making them send info from their computer which can start a slippery slope to an area BAILOPAN has said many times he will not let AMXX go to.
kmal2t is offline
lucky109
Senior Member
Join Date: Jan 2005
Old 05-19-2007 , 04:18   Re: how to check CVAR (bind) ??
Reply With Quote #6

Quote:
Originally Posted by kmal2t View Post
You can't check to see if mouse1 is bound to +attack because that is client side, meaning it is never sent to the server (where amx is). AMXX only gets that you're IN_ATTACK cuz it was sent to the server.

Getting the bind information would require getting information from the client side i.e making them send info from their computer which can start a slippery slope to an area BAILOPAN has said many times he will not let AMXX go to.
oh i see...thank you
lucky109 is offline
Reply



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 10:40.


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