AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to check CVAR (bind) ?? (https://forums.alliedmods.net/showthread.php?t=55278)

lucky109 05-18-2007 09:03

how to check CVAR (bind) ??
 
how to check CVAR bind MOUSE1 make sure +attack ??

_Master_ 05-18-2007 10:14

Re: how to check CVAR (bind) ??
 
please rephrase that

sawce 05-18-2007 12:29

Re: how to check CVAR (bind) ??
 
You can't.

lucky109 05-18-2007 14:32

Re: how to check CVAR (bind) ??
 
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)
}


kmal2t 05-18-2007 17:40

Re: how to check CVAR (bind) ??
 
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.

lucky109 05-19-2007 04:18

Re: how to check CVAR (bind) ??
 
Quote:

Originally Posted by kmal2t (Post 478054)
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


All times are GMT -4. The time now is 10:40.

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