Hmm..
Code:
#include <amxmodx>
#include <amxmisc> //This contains some useful functions
#include <fun> //This contains the function to change health
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,level,cid) {
if(!cmd_access(id,level,cid,2)) { // If they don't have access
return PLUGIN_HANDLED
}
// command itself + the arg = 2
new user[32], rate[32]
// If the index for user is 32, then you want to
// put 32-1 (31) down here:
read_argv(1,user,31)
new uid = find_player("bh",user)
get_user_info(uid, "rate", rate, 31)
client_print (id, print_chat, "Their rate is %i",rate)
// %s - string
// %i - integer
// %d - decimal
// %f - float
return PLUGIN_HANDLED
}