Recommended Posts

Hello everyone, I would like to know if it is possible to do something like:

self GetUserinfo("bindlist");

I think that it might be possible but the "bindlist" dvar is not a single string it's a list so somehow I should convert list to array then make a script to convert array to single lines and grep from it, But how to do it? and if someone could do it, I would like to do something like "grep" (in Linux) in gsx

Like after getting the list I would like to grep a pattern (a fast-fire bind, eg.

"weapnext; wait 2; weapnext"

)

and if the player has a matching pattern I would kick/ban him whatever so

Simply, I've 2 problems

1. How to grep the pattern

2. How to check if pattern matches especially the pattern has a 

;

which might confuse the gsx script a bit

Can anyone help? Thanks in advance. :)

Edited by $.W.@.T
Removed unnecessary words.

Share this post


Link to post
Share on other sites

bindlist is a client command. You can't fetch its result on a server.

Use cg_weaponCycleDelay dvar.

Share this post


Link to post
Share on other sites
11 hours ago, T-Max said:

bindlist is a client command. You can't fetch its result on a server.

Use cg_weaponCycleDelay dvar.

I do know about this dvar but technically I would like to only "disallow" binds but not modifying the actual switch time cause some of the players likes to do this "bind" manually, So it's not possible at all to retrieve a client command? not even with a custom menu like clientcmd but written differently? There's not a single way? Thanks in advance! 

Share this post


Link to post
Share on other sites
On 1/19/2019 at 8:50 AM, T-Max said:

bindlist is a client command. You can't fetch its result on a server.

Use cg_weaponCycleDelay dvar.

Hmm, is that a client side or a server side command? Like in gsc, what to put? setclientdvar or setdvar?

Share this post


Link to post
Share on other sites
On 1/26/2019 at 7:28 PM, $.W.@.T said:

Hmm, is that a client side or a server side command? Like in gsc, what to put? setclientdvar or setdvar?

 

On 1/26/2019 at 9:06 PM, T-Max said:

setclientdvar

hello guys

so i add this in globalogic.gsc

set cg_weaponCycleDelay

but only this ? no need time ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now