Raised This Month: $ Target: $400
 0% 

Chat On Off


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 04-13-2016 , 12:37   Re: Chat On Off
Reply With Quote #6

Use handled without main, plugins down won't be called.
Here's:
PHP Code:

new cv_chat

public plugin_init() 
{
    
cv_chat register_cvar("amx_chat_enable""1")
    
register_plugin(PLUGINVERSIONAUTHOR)     
    
register_clcmd"say""Cmd_Say" 
}  

public 
Cmd_Say()
{
    if(!
get_pcvar_num(cv_chat))
        return 
PLUGIN_HANDLED

siriusmd99 is offline
 



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 18:42.


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