It is currently 23 May 2018 16:02






Reply to topic  [ 2 posts ] 
 Ajutor mesaj 
Author Message
Membru, skill +1
Membru, skill +1
User avatar

Joined: 20 Dec 2015 09:25
Posts: 115
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Fond eXtream: 0
Aveti idee de ce nu apare colorat in chat? eu zic ca pare ok are alea definite

Code:
   new name[33];
   get_user_name(id,name,charsmax(name));
   if(g_time[id] == get_pcvar_num(time))
      zp_colored_print(id,"!gDe ce nu se pun culorile?",name)
}
stock zp_colored_print(const id,const input[], any:...)
{
   new msg[191], players[32], count = 1;
   vformat(msg,190,input,3);
   replace_all(msg,190,"!g","^x04");// green
   replace_all(msg,190,"!y","^x01");// normal
   replace_all(msg,190,"!team","^x03");// team
   
   if (id) players[0] = id; else get_players(players,count,"ch");

   for (new i=0;i<count;i++)
   {
      if (is_user_connected(players[i]))
      {
         message_begin(MSG_ONE_UNRELIABLE,get_user_msgid("SayText"),_,players[i]);
         write_byte(players[i]);
         write_string(msg);
         message_end();
      }
   }
}


25 Mar 2018 23:39
Profile multumesc WWW
Jan Darmu'
Jan Darmu'
User avatar

Joined: 25 Aug 2014 21:31
Posts: 5574
Location: Ploiesti
Detinator Steam: Da
CS Status: Sunt de nota 10 da' n-am timp
SteamID: Jandarmeria
Reputatie: Fost Membru Club eXtreamCS ( o luna )
Fost Moderator ajutator
Fost Super Moderator
eXtream Mod
Intermediar
Nume anterior : Christmas,
A k c 3 n 7
Fond eXtream: 0
incearca cu acest stock
Code:
stock print_color( const id, const input[ ], any:... )
{
    new 
count 1players32 ];
    
    static 
msg191 ];
    
vformatmsg190input);
    
    
replace_allmsg190"!v""^4" ); //- verde
    
replace_allmsg190"!g""^1" ); //- galben
    
replace_allmsg190"!e""^3" ); //- echipa
    
replace_allmsg190"!n""^0" ); //- normal
    
    
if( id players] = id; else get_playersplayerscount"ch" ); 
        {
    
    for( new 
0counti++ )
    {
        if( 
is_user_connectedplayers] ) )
        {
            
message_beginMSG_ONE_UNRELIABLEget_user_msgid"SayText" ), _players] );
            
write_byteplayers] );
            
write_stringmsg );
            
message_end( );
        }
    }
}

_________________
ImageImage

Lista intermediari
Nu ezita sa ma contactezi la 112 pentru interventii speciale: S.I.A.S
REGULI GENERALE
REGULILE SECTIUNII ANUNTURI


26 Mar 2018 02:08
Profile multumesc
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: Barlap and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  

În cazul în care aveți probleme cu contul trimiteți un email sau mesaj la servicii_extream[arond]yahoo[punct]com

Powered by phpBB® Forum Software © phpBB Group