Quote:
Originally Posted by mousesports
How do I advertise on the server for this plugin? I want to know all the players that there is an order / shop
|
Any advertisement plugin will do the job... Or just use this:
Code:
#include <amxmodx>
#include <cromchat>
new g_pAdvertFrequency
public plugin_init()
{
register_plugin("Shop Message in Chat", "1.0", "OciXCrom")
g_pAdvertFrequency = register_cvar("shop_advert_frequency", "120")
}
public plugin_cfg()
{
set_task(get_pcvar_float(g_pAdvertFrequency), "advertise_le_shop", .flags = "b")
}
public advertise_le_shop()
{
CC_SendMessage(0, "&x04* &x01YO everyone, &x03listen up&x01! Type &x04/shop &x01to buy stuff!")
}
Cvar:
shop_advert_frequency = 120 -- how many seconds between advertisements.
__________________