Why wont this work?
PHP Code:
#include <amxmodx>
#include <colorchat>
#define MAX_MSG 4
new const PLUGIN[ ] = "Advertisements"
new const VERSION[ ] = "1.0"
new const AUTHOR[ ] = "FlyingHorse"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_putinserver(id)
{
set_task(10.0, "advertisements", id)
}
public advertisements(id)
{
switch (random_num(1, MAX_MSG))
{
case 1:
{
ColorChat(id, RED, "lol")
}
case 2:
{
ColorChat(id, RED, "blah")
}
case 3:
{
ColorChat(id, RED, "Drekes has a ponytail!")
}
case 4:
{
ColorChat(id, RED, "omfg")
}
}
set_task(20.0, "advertisements", id)
}