CSPLague
Compile Etme Programı - 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: Compile Etme Programı (/showthread.php?tid=4848)

Pages: 1 2


Compile Etme Programı - aprdk - 12-09-12

Kaç Gundurlu Arıyorum Bi bulamdım Su Compile Programı Varsa Birisi Atabilirmi Acabaa Yaaa ! Big Grin


Cevap: Compile Etme Programı - к4dανяα - 12-09-12

Al Bakalım


Cevap: Compile Etme Programı - aprdk - 13-09-12

eyw saol DBig GrinS:A:FDS:FDA:FAD:

---------- Alttaki Mesaj Zamani 23:01 ---------- Önceki Mesaj Zamani 22:07 ----------

kardesim bisi daha sorcam bu colorchat hatası verıyo napcam inc dosyasını atıyom atıyom ıse yaramıyo ??


Cevap: Compile Etme Programı - berkanmtn - 13-09-12

Selamun aleykum kardeşim kusura bakma mesaj göndermeyi kapatmışsın plugin yapmayı biliyormusun ? - aprdk


Cevap: Compile Etme Programı - megasxselar - 13-09-12

PHP Code:
/* Fun functions
*
* by Numb
*
* This file is provided as is (no warranties).
*/

#if defined _colorchat_included
  #endinput
#endif
#define _colorchat_included

enum Color
{
    
NORMAL 1// clients scr_concolor cvar color
    
GREEN// Green Color
    
TEAM_COLOR// Red, grey, blue
    
GREY// grey
    
RED// Red
    
BLUE// Blue
}

new 
TeamName[][] = 
{
    
"",
    
"TERRORIST",
    
"CT",
    
"SPECTATOR"
}

ColorChat(idColor:type, const msg[], {Float,Sql,Result,_}:...)
{
    if( !
get_playersnum() ) return;
    
    new 
message[256];

    switch(
type)
    {
        case 
NORMAL// clients scr_concolor cvar color
        
{
            
message[0] = 0x01;
        }
        case 
GREEN// Green
        
{
            
message[0] = 0x04;
        }
        default: 
// White, Red, Blue
        
{
            
message[0] = 0x03;
        }
    }

    
vformat(message[1], 251msg4);

    
// Make sure message is not longer than 192 character. Will crash the server.
    
message[192] = '^0';

    new 
teamColorChangeindexMSG_Type;
    
    if(
id)
    {
        
MSG_Type MSG_ONE;
        
index id;
    } else {
        
index FindPlayer();
        
MSG_Type MSG_ALL;
    }
    
    
team get_user_team(index);
    
ColorChange ColorSelection(indexMSG_Typetype);

    
ShowColorMessage(indexMSG_Typemessage);
        
    if(
ColorChange)
    {
        
Team_Info(indexMSG_TypeTeamName[team]);
    }
}

ShowColorMessage(idtypemessage[])
{
    static 
bool:saytext_used;
    static 
get_user_msgid_saytext;
    if(!
saytext_used)
    {
        
get_user_msgid_saytext get_user_msgid("SayText");
        
saytext_used true;
    }
    
message_begin(typeget_user_msgid_saytext_id);
    
write_byte(id)        
    
write_string(message);
    
message_end();    
}

Team_Info(idtypeteam[])
{
    static 
bool:teaminfo_used;
    static 
get_user_msgid_teaminfo;
    if(!
teaminfo_used)
    {
        
get_user_msgid_teaminfo get_user_msgid("TeamInfo");
        
teaminfo_used true;
    }
    
message_begin(typeget_user_msgid_teaminfo_id);
    
write_byte(id);
    
write_string(team);
    
message_end();

    return 
1;
}

ColorSelection(indextypeColor:Type)
{
    switch(
Type)
    {
        case 
RED:
        {
            return 
Team_Info(indextypeTeamName[1]);
        }
        case 
BLUE:
        {
            return 
Team_Info(indextypeTeamName[2]);
        }
        case 
GREY:
        {
            return 
Team_Info(indextypeTeamName[0]);
        }
    }

    return 
0;
}

FindPlayer()
{
    new 
= -1;

    while(
<= get_maxplayers())
    {
        if(
is_user_connected(++i))
            return 
i;
    }

    return -
1;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/ 


dosyayı metin belgesine yapıştır farklı kaydet de ismini colorchat.inc diye kaydet includes klasörüne at tamamdr.


Cevap: Compile Etme Programı - akcaliberkk - 13-09-12

colorchat.inc dosyasını edinip bu dosyayı,
Program Files/AMX Mod X/files/base/scripting/includes
klasörüne atarsanız bu hatayla bir daha karşılaşmazsınız.
(Program Files herkeste aynı olmayabilir.)


Cevap: Compile Etme Programı - к4dανяα - 13-09-12

https://www.csplague.com/pawn-plugin-dersleri/14345-oyuncunun-ismini-gosterme-ve-colorchat-anlatim.html


Cevap: Compile Etme Programı - aprdk - 13-09-12

kardes yaptım ama olmuyor ıste bı baglanabılme ımkanınız varsa yapabılrmısınız ??


Cevap: Compile Etme Programı - к4dανяα - 13-09-12

ColorChat.inc'yi Valve/Cstrike/addons/amxmodx/scripting/include'nin içine koyun.

---------- Alttaki Mesaj Zamani 00:42 ---------- Önceki Mesaj Zamani 00:42 ----------

ekle lan değişik ekle msnyi [email protected]


Cevap: Compile Etme Programı - aprdk - 13-09-12

kadavra yapma ımkanın varmı msn fılan ??

---------- Alttaki Mesaj Zamani 00:45 ---------- Önceki Mesaj Zamani 00:43 ----------

ekledım msn Big Grin