Raised This Month: $ Target: $400
 0% 

Set server cvar via plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
lqlqlq
Senior Member
Join Date: Jan 2008
Old 07-23-2013 , 06:58   Set server cvar via plugin
Reply With Quote #1

I need to set sv_allowupload 0, how to do with pcvars or other fast way?
lqlqlq is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 07-23-2013 , 07:50   Re: Set server cvar via plugin
Reply With Quote #2

If you need to set one time, like in plugin_init, use set_cvar_num().
If you need to set more than on time, retrieve cvar pointer using get_cvar_ponter() and use set_pcvar_num().
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

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 06:27.


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