Quote:
Originally Posted by redivcram
Second parameter should be print_team_* (default, red, etc.)
|
Yes I did, but I didn't understand why I would didn't use CLIENT because I create COLOR for client ^ 3
i did something like that:
Code:
public CmdBanCtMenu( client )
{
if ( !is_user_connected( client ) )
return 1;
if ( ! ( get_user_flags( client ) & BANCT_ACCESS ) )
{
client_print_color( client, print_team_red, "[System] ^1You have^x03 no access^x01 to this command.");
return PLUGIN_HANDLED;
}
if ( ! ( get_user_flags( client ) == BANCT_ACCESS ) )
{
client_print_color(0, client, "%s ADMIN:^3 %s^1 has open^4 BanCT^1 Menu.", g_szPrefix, GetUserName( client ) );
static szMenu[ 50 ], iMenu, iCallback;
formatex( szMenu, charsmax( szMenu ), "\r[%s] \wJailbreak \yBanCT \wMenu", g_szMenuPrefix );
iMenu = menu_create( szMenu, "CmdBanCtMenu_Handler" );
iCallback = menu_makecallback( "CmdBanCtMenu_Callback" );
menu_additem( iMenu, "\wBan Player" );
menu_additem( iMenu, "\wView List", _, _, iCallback );
menu_display( client, iMenu, 0 );
}
return 1;
}