Raised This Month: $40 Target: $400
 10% 

plzz what this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hossm metwly
Junior Member
Join Date: Jul 2015
Old 07-26-2015 , 12:17   plzz what this plugin
Reply With Quote #1

what the plugin ,whe player " say /rs " this word id Hidden
hossm metwly is offline
ArabicMan
Veteran Member
Join Date: Feb 2014
Location: مصر
Old 07-26-2015 , 12:27   Re: plzz what this plugin
Reply With Quote #2

Must be admin_chat_colors.amxx .
When player say /rs if you add rest score plugin it won't be appear if not will appear also any thing after / will appear without this plug-in.

Last edited by ArabicMan; 07-26-2015 at 12:29.
ArabicMan is offline
Noize MC
Junior Member
Join Date: Nov 2013
Old 07-26-2015 , 15:57   Re: plzz what this plugin
Reply With Quote #3

Code:
#include < amxmodx >
new Trie:g_hiddenMessages;
public plugin_init( ) 
{
    register_plugin( "Hide CMDS", "1.2", "x vs zekStein++" )
    
    register_clcmd( "say", "cmdCheckCmd" )
    register_clcmd( "say_team", "cmdCheckCmd" )
    
    g_hiddenMessages = TrieCreate( )
    TrieSetCell( g_hiddenMessages, "rank", 1 )
    TrieSetCell( g_hiddenMessages, "top15", 1 )
    TrieSetCell( g_hiddenMessages, "me", 1 )
    TrieSetCell( g_hiddenMessages, "stats", 1 )
    TrieSetCell( g_hiddenMessages, "rankstats", 1 )
    TrieSetCell( g_hiddenMessages, "hp", 1 )
    TrieSetCell( g_hiddenMessages, "shop", 1 )
}
public cmdCheckCmd( id )
{
    new szSaid[ 128 ]
    read_args( szSaid, sizeof szSaid -1 )
    remove_quotes( szSaid )
    
    if( szSaid[ 0 ] == '/' || TrieKeyExists( g_hiddenMessages, szSaid ) )
    {
        return PLUGIN_HANDLED_MAIN
    }
    
    return PLUGIN_CONTINUE
}
Noize MC is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-26-2015 , 16:07   Re: plzz what this plugin
Reply With Quote #4

A trie is kind of overkill here, just save them in a constant. But, if for some reasons you want to keep using trie, at least destroy it in plugin_end. Yes, amxx should free all the handlers automatically, but it's better to make sure.
__________________

Last edited by HamletEagle; 07-26-2015 at 16:08.
HamletEagle is offline
Gh05t04
Senior Member
Join Date: Jul 2015
Old 07-26-2015 , 19:51   Re: plzz what this plugin
Reply With Quote #5

It might be: https://forums.alliedmods.net/showthread.php?p=652449
Gh05t04 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 17:52.


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