i want it will say the hello 5 times (timer 10 sec) and if it over the 5 so the timer will be 300 sec
like this
PHP Code:
#include <amxmodx>
#include <amxmisc>
new Gtime = 10;
new GTMSEC = 1;
public plugin_init()
{
set_task(Gtime ,"HelloMSG",0,_,_,"b")
}
public HelloMSG(id)
{
server_cmd("amx_say Hi , Welcome to my server .")
GTMSEC = GTMSEC +1;
if(GTMSEC >= 5)
Gtime = 300;
}