Why not
Code:
#include <amxmodx>
#include <amxmisc>
new PLUGIN[]="Rate_Checker"
new AUTHOR[]="FannyMagnet"
new VERSION[]="1.00"
public plugin_init()
{
register_plugin("PLUGIN,"VERSION,"AUTHOR")
register_concmd("amx_rc", "cmd_rc", ADMIN_SLAY, "<target> ")
}
public cmd_rc(id) {
new user[32], rate[32], uid
read_argv(1,user,32) // Read first part after command
uid = find_player("bh",user) // Find user
get_user_info(uid, "rate", rate, 31) // Get the rate of the user from UID
client_print (id, print_chat, "Thier rate is %s",rate) // Print the result to the admin
return PLUGIN_HANDLED
}
new uid = cmd_target(id,user,0)
if(!uid) {
return PLUGIN_HANDLED
}