Since i cant find much resources on this, i decided to do it on my own. Forgive me if ive done something stupid or "forbidden" or whatever.
Ive combined a hello world, with a hp thing that two different people showed me.
Code:
#include <amxmod>
#include <amxmisc>
public saytime(id,level,cid) {
if (!cmd_access(id,level,cid,1)) {
return PLUGIN_HANDLED
}
client_print(id,print_chat THETIME
return PLUGIN_HANDLED
}
public plugin_init() {
register_plugin("Saytime","0.1","jghg")
register_clcmd("say /thetime","saytime") // prints the time!!! to everyone
}
What i want to know, is how to do this: client_print(id,print_chat THETIME
like, get the time of the server, and also, how to do rather than one client, send to all clients...thanks guys