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

Disconnect player if cl_allowdownload 0


Post New Thread Reply   
 
Thread Tools Display Modes
Styles
Veteran Member
Join Date: Jul 2004
Location: California
Old 04-07-2007 , 23:41   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #11

oo heh learn somthing every day... thx
Styles is offline
Send a message via AIM to Styles
Zky
Member
Join Date: Nov 2005
Old 04-08-2007 , 16:21   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #12

It will be yet for someone what idie how to help
Zky is offline
stupok
Veteran Member
Join Date: Feb 2006
Old 04-08-2007 , 17:05   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #13

Try this: (untested)

Code:
#include <amxmodx> public plugin_init() {     register_plugin("Plugin", "1.0", "stupok69"); } public client_putinserver(id) {     if (!is_user_bot(id))         query_client_cvar(id, "cl_allowdownload", "cvar_result_func"); } public cvar_result_func(id, const cvar[], const value[]) {     if(str_to_num(value) < 1)         server_cmd("kick #%i ^"You must have cl_allowdownload 1^"", get_user_userid(id)) }

Last edited by stupok; 04-08-2007 at 17:15.
stupok is offline
Zky
Member
Join Date: Nov 2005
Old 04-08-2007 , 17:53   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #14

I checked plug-in by stupok69, it doesnt work
Zky is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 04-08-2007 , 18:18   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #15

Did you test it on a listen server?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Zky
Member
Join Date: Nov 2005
Old 04-08-2007 , 18:20   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #16

hm, dedicated non-steam , win32
Zky is offline
Voi
Veteran Member
Join Date: Sep 2006
Location: Gdansk, Poland
Old 04-10-2007 , 09:11   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #17

how about forcing the player to have cl_allowdownload 1 in client_connect function ?
__________________
Voi is offline
mateo10
Veteran Member
Join Date: Jan 2006
Old 04-10-2007 , 09:35   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #18

Non-steam is not supported here (I've heard).
mateo10 is offline
Zky
Member
Join Date: Nov 2005
Old 04-10-2007 , 09:58   Re: Disconnect player if cl_allowdownload 0
Reply With Quote #19

It is a pity, that nobody will help
Zky 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 08:06.


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