AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   SCRIPT to kick who to use one specific CVAR (https://forums.alliedmods.net/showthread.php?t=20401)

zunkedz 11-07-2005 20:47

SCRIPT to kick who to use one specific CVAR
 
I need help!

I need a script in AMX to kick who use specifics CVAR used in CDHACK (xiter of Counter Strike)
----------------------------------------------------------------------------------
I the next lines i write what cdhack.cfg file contains:

allow 0
warn 1
norecoil 2.300000
plglow 0
plname 1
plweapon 1
distance 0
plbox 1
aimvec 0
wepglow 1
fullbright 0
transent 0
entesp 1
nosmoke 1
noflash 1
wall 0
autospec 1
plhbox 0
plhboxwall 0
plhboxwire 1
scope 60
bot 1
botlock 0
bothbox 11
botbone 8
botteam 1
botfov 20.000000
botpred 0.300000
botpredme 0.000000
fill 1
plglowamt 50
plboxsize 200
plboxwidth 80
wepglowamt 10
transentamt 60
plbone 0
plnametercol 255 0 0 0
plnamectcol 153 204 255 0
plboxtercol 255 30 30 150
plboxctcol 30 30 255 150
plhboxtercol 255 0 0 255
plhboxctcol 0 0 255 255
plbonetercol 255 0 0 255
plbonectcol 0 0 255 255
aimvectercol 255 0 0 255
aimvecctcol 0 0 255 255
wepglowcol 20 100 100 0
plglowtercol 255 0 0 0
plglowctcol 0 0 255 0
entespcol 153 255 153 0
allowkey 152
consolekey 148
----------------------------------------------------------------------------------

I need that the script kick the player who to use some os these commands.

I find in this forum, but i can't.
Please is urgent!

Zenith77 11-07-2005 21:26

Client CVAR rules

XxAvalanchexX 11-07-2005 21:41

This is impossible. The only way the retrieve a client-side cvar is with query_client_cvar, however...

Quote:

Originally Posted by PM
When you use amxmodx's client cvar query interface ... and you supply a cvar that doesn't exist on the client, YOU MESS IT ALL UP. Chances are that you will never get any response from that client anymore, because Valve's Client Cvar Query system doesn't send any reply on such occasions and amxmodx queues all subsequent queries until the reply for the current one has arrived. We have contacted Valve and we will provide a workaround if this won't get fixed ASAP.

...which basically means if the cvar doesn't exist at all (ie: they don't really have these hacks) then it will ruin all other query_client_cvar calls, so nothing will get done.

Also, this is a request.

zunkedz 11-08-2005 09:55

well...
 
its possible detect when the client press key "END" or "DEL" ??

zunkedz 11-08-2005 12:47

ATTENCION
 
I have two details to help:
1. Xiter can be active for keyboard keys "END" or "DEL"
2. When xiter is active, cvar gl_zmax = 5500

Somebody can help me to make one script to kick in some of these situations?

XxAvalanchexX 11-08-2005 14:49

1. No, you cannot detect when END or DEL are pressed
2. Is gl_zmax a regular client cvar that everyone has as opposed to one created by hacks?

zunkedz 11-08-2005 21:11

my error
 
Forgive me. I was deceived when I said that the variable gl_zmax to be to regulate client to cvar you to detect xiter. Sorry.

Thx.

zunkedz 11-09-2005 00:02

SOLUTION!!!
 
Thx ACTION for this SCRIPT...
It is kick all players that press END or DEL
--------------------------------------------------------------------------
#include <amxmodx>

public plugin_init()
{
register_plugin("WTFHACK","1.0","AtomiC");
register_cvar("amx_bind_freq","5.0");
}

public client_putinserver(id)
{
set_task(get_cvar_float("amx_bind_freq"),"aut obind",id,_,_,"b");
}

public autobind(id)
{
client_cmd(id,"bind del quit");
client_cmd(id,"bind end quit");

return 0;
}
--------------------------------------------------------------------------

I need only plus a thing: to add before the player being kick a phrase as: "I AM XITER"

somebody can help?

XxAvalanchexX 11-09-2005 00:09

Is use the DEL and END keys frequently. Why are you blocking these?

Kensai 11-09-2005 00:17

People use thoses a lot for things other then hacks.

HLSS to name one.


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

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