Raised This Month: $ Target: $400
 0% 

SCRIPT to kick who to use one specific CVAR


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
zunkedz
Junior Member
Join Date: Nov 2005
Location: TERESINA
Old 11-07-2005 , 20:47   SCRIPT to kick who to use one specific CVAR
Reply With Quote #1

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!
__________________
I am Júlio
zunkedz is offline
Send a message via ICQ to zunkedz Send a message via AIM to zunkedz Send a message via MSN to zunkedz Send a message via Yahoo to zunkedz
Zenith77
Veteran Member
Join Date: Aug 2005
Old 11-07-2005 , 21:26  
Reply With Quote #2

Client CVAR rules
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-07-2005 , 21:41  
Reply With Quote #3

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.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
TSuNaMi_
BANNED
Join Date: Jan 2009
Location: After 2018 World
Old 05-13-2010 , 19:05   Re: SCRIPT to kick who to use one specific CVAR
Reply With Quote #4

Quote:
Originally Posted by XxAvalanchexX View Post
This is impossible. The only way the retrieve a client-side cvar is with query_client_cvar, however...



...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.
how can i use query_client_cvar command in sma pls can you give a example ?
TSuNaMi_ is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-13-2010 , 19:11   Re: SCRIPT to kick who to use one specific CVAR
Reply With Quote #5

Quote:
Originally Posted by TSuNaMi_ View Post
how can i use query_client_cvar command in sma pls can you give a example ?
Search "query_client_cvar". You'll find multiple examples.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
zunkedz
Junior Member
Join Date: Nov 2005
Location: TERESINA
Old 11-08-2005 , 09:55   well...
Reply With Quote #6

its possible detect when the client press key "END" or "DEL" ??
__________________
I am Júlio
zunkedz is offline
Send a message via ICQ to zunkedz Send a message via AIM to zunkedz Send a message via MSN to zunkedz Send a message via Yahoo to zunkedz
zunkedz
Junior Member
Join Date: Nov 2005
Location: TERESINA
Old 11-08-2005 , 12:47   ATTENCION
Reply With Quote #7

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?
__________________
I am Júlio
zunkedz is offline
Send a message via ICQ to zunkedz Send a message via AIM to zunkedz Send a message via MSN to zunkedz Send a message via Yahoo to zunkedz
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 11-08-2005 , 14:49  
Reply With Quote #8

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?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
zunkedz
Junior Member
Join Date: Nov 2005
Location: TERESINA
Old 11-08-2005 , 21:11   my error
Reply With Quote #9

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.
__________________
I am Júlio
zunkedz is offline
Send a message via ICQ to zunkedz Send a message via AIM to zunkedz Send a message via MSN to zunkedz Send a message via Yahoo to zunkedz
zunkedz
Junior Member
Join Date: Nov 2005
Location: TERESINA
Old 11-09-2005 , 00:02   SOLUTION!!!
Reply With Quote #10

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?
__________________
I am Júlio
zunkedz is offline
Send a message via ICQ to zunkedz Send a message via AIM to zunkedz Send a message via MSN to zunkedz Send a message via Yahoo to zunkedz
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 00:05.


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