Kolorowe
radex
21.06.2009
Witam jak zrobic zeby pisalo Kontakt z Head Adminem GG: [numer] i zeby numer byl takim kolorem w jakim jestesmy teamie a napisy Kontakt zielonym ?
Mam taki kod
Mam taki kod
#include <amxmodx> public plugin_init() { register_plugin("plugin", "1.0", "darkman"); set_task(120.0, "PokazWiadomosc", 123, _, _, "b"); } public PokazWiadomosc() { client_print(0, print_chat, "Kontakt z Head Adminem GG: 114685"); }
Knopers
21.06.2009
#include <amxmodx> public plugin_init() { register_plugin("plugin", "1.0", "darkman"); set_task(120.0, "PokazWiadomosc", 123, _, _, "b"); } public PokazWiadomosc() { fnGreenChat(0, "Kontakt z Head Adminem GG: 114685"); } fnGreenChat( plr, const message[], {Float,Sql,Result,_}:... ) { static max_players, svc_saytext; if( !max_players ) max_players = get_maxplayers( ); if( !svc_saytext ) svc_saytext = get_user_msgid( "SayText" ); static msg[192]; msg[0] = 0x04; vformat( msg[1], sizeof msg - 2, message, 3 ); if( plr > 0 && plr <= max_players ) { message_begin( MSG_ONE, svc_saytext, { 0, 0, 0 }, plr ); write_byte( plr ); write_string( msg ); message_end( ); } else if( plr == 0 ) { for( new i = 1 ; i <= max_players ; i++ ) { if( is_user_connected( i ) ) { message_begin( MSG_ONE, svc_saytext, { 0, 0, 0 }, i ); write_byte( i ); write_string( msg ); message_end( ); } } } return 1; }
@Edit : @down:
Tak też można
darkman
21.06.2009
#include <amxmodx> public plugin_init() { register_plugin("plugin", "1.0", "darkman"); set_task(120.0, "PokazWiadomosc", 123, _, _, "b"); } public PokazWiadomosc() { msg(0, "^x04 Kontakt ^x03 z Head Adminem GG: 114685"); } public msg(id, const message[]) { message_begin((id !=0 ? MSG_ONE : MSG_ALL), get_user_msgid("SayText"), _, id); write_byte(id); write_string(message); message_end(); }