hi
1 - declare a variable so we can increase/decrease it's value when needed.
2 - register your command.
3 - before printing message, increase variable value by 1 (++) (decrease = (--) , then get variable value on client_print. after that set a task and put function in it.
1 -
2 -
Code:
register_clcmd("say /test" , "test")
3 -
Code:
public test(id)
{
g_timer ++
client_print(id , print_chat , "Example %d", g_timer)
set_task(10.0,"test")
}
results :
Quote:
/test
Example1
After 10 sec...
Example2
After 10 sec...
Example3
After 10 sec...
Example4
........
|