CSPLague
[JB] Colorhat Hatası - Printable Version

+- CSPLague (https://www.csplague.com)
+-- Forum: CS 1.6 Plugin (Eklenti) Bölümü (https://www.csplague.com/forumdisplay.php?fid=6)
+--- Forum: [İSTEK] Cs 1.6 Plugin İstek Bölümü (https://www.csplague.com/forumdisplay.php?fid=80)
+---- Forum: Çözülmüş İstekler (https://www.csplague.com/forumdisplay.php?fid=87)
+---- Thread: [JB] Colorhat Hatası (/showthread.php?tid=10021)



[JB] Colorhat Hatası - emre113 - 20-05-14

[MENTION=20089]JDM[/MENTION] Server csdurağında sorunu çözerseniz nasıl yaptığınızı anlatırsanız sevinirim


Cevap: [JB] Colorhat Hatası - JDM - 20-05-14

PHP Code:
#include <colorchat> 

Bu kısmı sildikten sonra eklentinin en altına bu stock'u yazıyoruz

PHP Code:
stock ColorChat(const id, const string[], {FloatSqlResul,_}:...) { 
    new 
msg[191], players[32], count 1
    
    static 
len
    
len formatex(msgcharsmax(msg), "^x01" ); 
    
vformat(msg[len], charsmax(msg) - lenstring3); 
    
    if(
id)players[0] = id
    else 
get_players(players,count,"ch"); 
    
    for (new 
0counti++){ 
        
        if(
is_user_connected(players[i])){ 
            
            
message_begin(MSG_ONE_UNRELIABLEget_user_msgid("SayText"),_players); 
            
write_byte(players); 
            
write_string(msg); 
            
message_end(); 
        } 
    } 
    return; 


Daha sonra ctrl+f yapıp arama kısmına "ColorChat" yazıyoruz her "enter" yaptığımızda karşımıza çıkan ColorChat'lerin 2. parametresinde ki renk kodlarını siliyoruz (RED,GREEN,GRAY,NORMAL)

ÖRNEK:

PHP Code:
ColorChat(id,RED,"^3[ JaiLbReak ]^4 Marketten^3 [ Kanli Balta ]^4 Caldin,Pis Herif."

->

PHP Code:
ColorChat(id,"^3[ JaiLbReak ]^1 Marketten ^4[ Kanli Balta ]^1 Caldin,Pis Herif."

olarak değiştiriyoruz...[/i][/i][/i]