Chameleon available only to user with flags
Posted: Sun Jan 22, 2012 1:25 pm
I am wondering how to make chameleon restricted only for VIP/admin? I tested the way recommended by whosyourdaddy but it seems to that isn't working
When I try to compile war3ft.sma in local compiler I have errors like that

And that is my menus.inl ' s part :
I just change the Z flag to A flag and z symbol to A symbol.
Am I doing something wrong? Or maybe is there any another way to restrict chameleon only for admin/VIP ?
Please reply.

When I try to compile war3ft.sma in local compiler I have errors like that

And that is my menus.inl ' s part :
Code: Select all
// All other cases
else
{
new bool:bAllowRace = true;
if(i == 9 && !(get_user_flags( id ) & ADMIN_LEVEL_A) )
bAllowRace = false;
// Check to see if the user can choose this race (are there too many of this race?)
if ( bAllowRace )
{
pos += formatex( szMenu[pos], 512-pos, "\w%d. %s\y\R%s^n", i + 1-A, szRaceName[i], ( (get_pcvar_num( CVAR_wc3_save_xp )) ? szXP : " " ) );
iKeys |= (1<<i-A);
}
// If not, display the race, but don't give them a key to press
else
{
pos += formatex( szMenu[pos], 512-pos, "\y%d. %s\y\R%s^n", i + 1-A, szRaceName[i], ( (get_pcvar_num( CVAR_wc3_save_xp )) ? szXP : " " ) );
}
}
}
Am I doing something wrong? Or maybe is there any another way to restrict chameleon only for admin/VIP ?
Please reply.