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.
__________________