Quote:
Originally Posted by FlyingHorse
add this after u done that:
ColorChat(0, COLOR, "^x04%s %s^x01 has disconnected from^x04 %s (rank %i)", IsUserAdmin(id) ? "Admin" : "Player", szName, szCountry, stats);
|
Please, this is so wrong. Please check documentations if ur not sure,
I dont know them out of my head. But ill guess that stats[0] is the kill amount, stat[1] is the death amount and so on. ( stats[3] should be headshots )
Stop posting wrong information
example for ranks :
PHP Code:
public cmdrank(id)
{
static stats[8], stats2[4], body[8]
new rank_pos = get_user_stats(id, stats, body);
get_user_stats2(id, stats2);
new max_pos = get_statsnum()
ColorChat(id,RED, "Your rank is^x04 %i ^x03 of^x04 %i^x03 with^x04 %i^x03 Kills ,^x04 %i^x03 Headshots and^x04 %i^x03 Deaths.",rank_pos,max_pos,stats[0],stats[2],stats[1])
return PLUGIN_HANDLED;
}
__________________