PHP Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Ping Info"
#define VERSION "1.0"
#define AUTHOR "CodeMaster"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_
register_clcmd("ping_cl","cmd_get_ping",ADMIN_USER,"")
}
public cmd_get_ping(id,level,cid) {
new ping
new loss
get_user_ping(id,ping,loss)
client_print(id,print_chat,"Ping: %d",ping)
return PLUGIN_HANDLED
}
This should work.
Spunky means that you can't FIND done code snippets you need, but he points to where you should search for info on how to do it.
It's always better if you know HOW-TO do things.
Again, try this, and if it won't work, say it and I'll fix it.
Cheers ;)
Nidza
__________________