Snaip3Rs Posted April 1, 2011 Report Share Posted April 1, 2011 (edited) Izmeklējos visur un nekādi nevarēju uzlikt! Mēģināju visādos veidos. Man vajag tādu lietu lai šis kods rādās sarkanā krāsa nevis dzeltenā serverī! client_print( param[0] ,print_chat, "[FunPlay] Players with ping higher than %d will be kicked!", get_cvar_num( "amx_hpk_ping" ) ) Man vajag lai ši vieta būtu iekrāsota zinu ka kāds gan jau zin! [FunPlay] Players with ping higher than %d will be kicked! Edited April 1, 2011 by Snaip3Rs Link to comment Share on other sites More sharing options...
remix.cc Posted April 1, 2011 Report Share Posted April 1, 2011 eeee... tur tipa ar register_message to vareja izdarit, pamekle amxmodx foruma "colour chat" (vai color -wtf? ) ja nesanaks, tad, iespejams, palidzeshu, tagad jaskrien... Link to comment Share on other sites More sharing options...
-Ex- Posted April 2, 2011 Report Share Posted April 2, 2011 (edited) 1) Copy-Paste kodu no šīs lapas un saglabā failu kā colorchat.inc; 2) Aizej uz folderi scripting un iekopē failu pie include; 3) Savā kodā pievieno include - #include <colorchat>; 4) Kā lietot colorchat : ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...) Piemērs. ColorChat(i ,RED,"^3%s ^1 just used colorchat!", nick) Krāsas iekš string: ^1 - defaultā krāsa ^2 - zaļa krāsa ^3 - komandas krāsa (sarkana, zila, pelēka) Edited April 2, 2011 by -Ex- Link to comment Share on other sites More sharing options...
DeimoN Posted April 2, 2011 Report Share Posted April 2, 2011 -Ex-, tu nenorādīji, kur var dabūt colorchat.inc failu. Link to comment Share on other sites More sharing options...
KpC Posted April 2, 2011 Report Share Posted April 2, 2011 (edited) http://svn.ian.cammarata.us/index.cgi/amxx/include/colorchat.inc?view=markup client_print( param[0] ,print_chat, "[FunPlay] Players with ping higher than %d will be kicked!", get_cvar_num( "amx_hpk_ping" ) ) => ColorChat( param[0], RED, "^3[FunPlay] Players with ping higher than %d will be kicked!", get_cvar_num("amx_hpk_ping") ) Edited April 2, 2011 by KpC Link to comment Share on other sites More sharing options...
Recommended Posts