Raised This Month: $51 Target: $400
 12% 

Disconnect player if cl_allowdownload 0


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zky
Member
Join Date: Nov 2005
Old 04-07-2007 , 14:35   Disconnect player if cl_allowdownload 0
Reply With Quote #1

Who can to help ? Need plug-in which will disconnect from server or kick, if for a player have cl_allowdownload 0 . Some players delete one file whereupon they do not have smoke, and if cl_allowdownload 0, then he is not begun to the swing again..


Sorry for my bad english.
Zky is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 04-07-2007 , 15:29   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #2

EDIT: Look below.
__________________
Oh yeah

Last edited by Drak; 04-07-2007 at 16:05.
Drak is offline
Send a message via MSN to Drak
Zky
Member
Join Date: Nov 2005
Old 04-07-2007 , 15:34   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #3

OK I will check up it, and will say works or not.

Thanks.

I checked plug-in... it doesnt work

Last edited by Zky; 04-07-2007 at 15:41. Reason: Later... after test..
Zky is offline
Drak
Veteran Member
Join Date: Jul 2005
Old 04-07-2007 , 16:04   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #4

Code:
#include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR); } public client_putinserver(id) set_task(5.0,"CheckPlayer",id) public CheckPlayer(id) {         new cl_down[33]     //cl_down[id] = 1;     get_user_info(id,"cl_allowdownload",cl_down,31)     if(equali(cl_down,"0")) {         new player = get_user_userid(id)         server_cmd("kick #%i",player)     } }

This one worked just fine (with another client cvar), but I can't seem to return anything with "cl_allowdownload" Maybe it's a client-side only CVar? Try again with the code above.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
Zky
Member
Join Date: Nov 2005
Old 04-07-2007 , 16:26   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #5

The second version does not work also. :*(
Zky is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-07-2007 , 16:31   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #6

You have to use query_client_cvar.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-07-2007 , 16:40   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #7

Please explain why XxAvalanchexX?.
Styles is offline
Send a message via AIM to Styles
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 04-07-2007 , 16:58   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #8

http://forums.alliedmods.net/showthr...S+cvar+checker

You can use EKS cvar checker.
__________________
No private support via Instant Message
GunGame:SM Released
teame06 is offline
Send a message via AIM to teame06
Zky
Member
Join Date: Nov 2005
Old 04-07-2007 , 17:37   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #9

Quote:
Originally Posted by teame06 View Post
Large plug-in, i need check only one cvar...
Zky is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-07-2007 , 18:15   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #10

styles: Because it's a client cvar, and query_client_cvar is the only way to retrieve those values.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX 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 12:10.


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