Ciao,
I use this include, and sometimes my MOTDs only flicks/blinks (just open and immediately close). Does anyone know whats wrong and how to fix it?
My code:
PHP Code:
public Action:Hook_PlayerChat( client, argc )
{
if( !Client_IsIngame( client ) )
return Plugin_Continue;
decl String:sText[ 512 ], String:url[ 128 ];
GetCmdArgString( sText, sizeof( sText ) );
StripQuotes( sText );
if( sText[ 0 ] != '#' && sText[ 0 ] != '!' )
return Plugin_Continue;
if( GetTrieString( g_links, sText, url, sizeof( url ) ) )
AdvMOTD_ShowMOTDPanel( client, "title", url, MOTDPANEL_TYPE_URL );
return Plugin_Continue;
}