Jump to content
GIGN Forum

Plugin Krāsa


Recommended Posts

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 by Snaip3Rs
Link to comment
Share on other sites

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 by -Ex-
Link to comment
Share on other sites

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 by KpC
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...