Raised This Month: $ Target: $400
 0% 

Hide chat Triggers


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 08-08-2012 , 09:45   Re: Hide chat Triggers
Reply With Quote #2

To translate this code into Pawn:

Code:
new Trie:g_tTriggers; public plugin_init( ) {     register_clcmd( "say", "CmdSay" );     register_clcmd( "say_team", "CmdSay" );         g_tTriggers = TrieCreate( );     TrieSetCell( g_tTriggers, "rank", 1 ); } public CmdSay( iPlayer ) {     new szArgs[ 8 ];     read_args( szArgs, charsmax( szArgs ) );     remove_quotes( szArgs );         new iStart = ( szArgs[ 0 ] == '/' || szArgs[ 0 ] == '!' || szArgs[ 0 ] == '.' ) ? 1 : 0;         return TrieKeyExists( g_tTriggers, szArgs[ iStart ] ) ? PLUGIN_HANDLED : PLUGIN_CONTINUE; }

This is Scripting Help, so I expect you to be able to know how to code and be able to add the part for the file yourself, or ask for help if needed.
If you can't code, then I'll move this to Suggestions/Requests where it can be done for you.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 08-08-2012 at 14:14.
Exolent[jNr] 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 05:43.


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