|
发表于 2011-3-4 20:40:11
|
显示全部楼层
来自 中国–广东–东莞
我不知道你的代码是怎么样的,
但是如果是跟我那样写的话,一定是会显示的!
我这里我自己写了一个,你自己可以对照看一下!- #include <amxmodx>
- new g_iMaxPlayers;
- public Event_NewRound()
- {
- static szMessage[ 128 ];
- static szName[ 32 ];
-
- for( new i = 1; i <= g_iMaxPlayers; i++ )
- {
- if ( is_user_connected( i ) && ( get_user_flags( i ) & ADMIN_LEVEL_G ) )
- {
- get_user_name( i, szName, charsmax( szName ) );
- client_print_color( id, id, "^x04【提示】^x03%s ^x01你已具有^x03【某某权限】。", szName );
- }
- }
- }
- stock client_print_color(id, color, const fmt[], any:...)
- {
- static szMsg[ 192 ];
- vformat( szMsg, charsmax( szMsg ), fmt, 4 );
-
- static iSayText;
-
- if ( iSayText || ( iSayTest = get_user_msgid( "SayText" ) ) )
- {
- message_begin( id ? MSG_ONE_UNRELIABLE : MSG_BROADCAST, iSayText, _, id );
- {
- write_byte( color );
- write_string( szMsg );
- }
- message_end();
- }
- }
- public plugin_init()
- {
- register_plugin( "Test Plugin", "0.1", "K.K.Lv" );
-
- register_event( "HLTV", "Event_NewRound", "a", "1=0", "2=0" );
-
- g_iMaxPlayers = get_maxplayers();
- }
复制代码 |
|