Quote:
Originally Posted by MousePad
Can you paste your final code here?
|
PHP Code:
#include <amxmodx>
#include <csx>
#define MESSAGE_PREFIX "AMXX"
public plugin_init() {
register_plugin("Client Connect Rank", "0.0.1", "Jhob94")
register_event("TeamInfo", "Join_Team", "b")
}
public Join_Team(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)
}
}
__________________