Hi
I tried use this:
PHP Code:
#include <amxmodx>
#include <csx>
#define MESSAGE_PREFIX "AMXX"
public plugin_init() {
register_plugin("Client Connect Rank", "0.0.1", "Jhob94")
}
public client_putinserver(id)
{
new iStats[8], Rank, name[32]
Rank = get_user_stats(id, iStats, iStats)
get_user_name(id,name,31)
if(!is_user_bot(id))
{
if(Rank <= 15)
client_print(0, print_chat, "[%s] %s joined the server. Be careful his rank is %d !", MESSAGE_PREFIX, name, Rank)
else
client_print(0, print_chat, "[%s] %s joined the server. His rank is %d .", MESSAGE_PREFIX, name, Rank)
}
}
It works, but have some fail... It always says that rank is 0

Someone knows why?
__________________