Something like :
Code:
#include <amxmodx>
#include <amxmisc>
new g_AdTxt[][]=
{
"The MCPD is hiring! Apply on our forums today!",
"Want to save lives? Join the MCMD today! Visit our forums to apply.",
"Chase bank is looking for a new director! Do you have what it takes? Find out on our forums!",
"Need a place to stay for the night? Visit Hotel Mecklenburg! Rooms starting at only $50!",
"Good times, good drinks, good company... Come visit us at the Irish Pub!"
};
new g_enabled;
new g_num = 0;
public plugin_init()
{
register_plugin( "Advertisements Mod", "0.1a", "turkey2112");
g_enabled = register_cvar( "amx_advertsenable", "1" );
set_task( 60.0, "advertise", 0, _, _,"b" );
}
public advertise()
{
if( !get_pcvar_num( g_enabled ) )
return;
client_print( 0, print_chat, g_AdTxt[g_num++] );
if( g_num > sizeof g_AdTxt - 1 )
g_num = 0;
}
__________________