Raised This Month: $ Target: $400
 0% 

Chat On Off


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
notahacker
Member
Join Date: Jan 2015
Old 04-13-2016 , 11:07   Chat On Off
Reply With Quote #1

Hi Mates.. I currently have a plugin that disables the chat (cs 1.6).

Code:
public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd( "say", "Cmd_Say" );
    
}

public Cmd_Say()
    return PLUGIN_HANDLED_MAIN;
I want to register a command, For example, amx_nochat. when i put "amx_nochat 1", the plugin activates. and when i put "amx_nochat 0", the plugin disactivates and chat is on once again.

i've been trying to edit the plugin, but i'm failing.

Can any mate help please? Or just give me an example. i've been looking at other plugins but i still can't do it.

Thankss mates
notahacker 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