hey guys, im learning small, and i got a question. Im trying to make a plugin that will print to client every X sec. I have 3 things that i would like it to print, but all at seperate times. So for example i want it to print something at 60 sec, then something else at 120 sec, then something else at 180 sec, and then repeat. Right now for some reason they all print at 90sec. heres my code, maybe someone can tell me what im missing heh.
Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Chat Info"
#define VERSION "0.1"
#define AUTHOR "Solor"
public plugin_init()
{
register_plugin("Chat Info", "0.1", "Solor")
register_cvar("Advertise","60")
set_task(get_cvar_float("Advertise"),"advertise" , _ , _ , _ , "b")
register_cvar("Advertise2","120")
set_task(get_cvar_float("Advertise2"),"advertise2" , _ , _ , _ , "b")
register_cvar("Advertise3","180")
set_task(get_cvar_float("Advertise3"),"advertise3" , _ , _ , _ , "b")
}
public advertise()
{
client_print(0,print_chat,"[INFO] Our website is www.ImmortalGamers.com")
return PLUGIN_HANDLED
}
public advertise2()
{
client_print(0,print_chat,"[INFO] We currently have 2 servers. Please type /servers for more info")
return PLUGIN_HANDLED
}
public advertise3()
{
client_print(0,print_chat,"[INFO] We are in need of paying Admins. If interested type /donate for more info")
return PLUGIN_HANDLED
}
thanks.
__________________