Sure, i was just thinking of that, after posted...
Either you do 1 task per player that basically is bad :
Code:
#include <amxmodx>
#define PLUGIN "Ads"
#define VERSION "1.0"
#define AUTHOR "nuki"
#define TASKID 123456
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect(id) {
set_task(400.0, "PrintText", id+TASKID, _, _, "b")
}
public client_disconnect(id) {
remove_task(id+TASKID)
}
public PrintText(id) {
id -= TASKID
client_print(id, print_chat, "Message that will be displayed")
}
either you make only 1 task for all players that is better :
Code:
#include <amxmod>
#define PLUGIN "Ads"
#define VERSION "1.0"
#define AUTHOR "nuki"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_cfg() {
set_task(400.0, "PrintText", _, _, _, "b")
}
public PrintText() {
client_print(0, print_chat, "Message that will be displayed")
}