im using this method to assign ranks to clients...
PHP Code:
/* Rank Names */
enum
{
OWNER,
HADMIN,
ADMIN,
PLAYER,
AUTHORIZED
};
new const AccessType[AUTHORIZED][]=
{
"Manager",
"Head Admin",
"Admin",
"Player"
};
/* Rank Names End */
and how they get assigned to clients
PHP Code:
public client_connect(id)
{
rank1 = get_user_flags(id) & ADMIN_LEVEL_B;
rank2 = get_user_flags(id) & ADMIN_LEVEL_C;
rank3 = get_user_flags(id) & ADMIN_LEVEL_D;
rank4 = get_user_flags(id) & ADMIN_ALL;
if(rank1 & rank2 & rank3)
{
RankName[id] = OWNER;
}
else if(rank2 && rank3)
{
RankName[id] = HADMIN;
}
else if(rank3)
{
RankName[id] = ADMIN;
}
else if(rank4)
{
RankName[id] = PLAYER;
}
now my question is how to script this into a client_print ?
i know i havent tried yet... just need a shove in right direction ?
thanks,