Raised This Month: $ Target: $400
 0% 

return a client cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Drak
Veteran Member
Join Date: Jul 2005
Old 07-31-2008 , 20:30   Re: return a client cvar
Reply With Quote #4

Code:
#include <amxmodx> new p_Enable public plugin_int() {     register_plugin("Block Fullupdate","0.1a","Drak");     p_Enable = register_cvar("amx_blockfullupdate","1"); } public client_command(id) {     if(get_pcvar_num(p_Enable))     {         new Command[33]         read_argv(0,Command,32);         if(equal(Command,"fullupdate"))             return PLUGIN_HANDLED_MAIN     } }

This should work, not sure. But "amx_blockfullupdate 1/0" will enable disable the usage of it.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
 



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 05:29.


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