Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Renk PLugini
#1
Arkadaslar Bana

Terrore ates edince kırmızı ısık

Ct ye ates edince mavi ısık cıkma plugini lazım yapabilecek varmı ?
ByOnur
Reply
#2
PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < hlsdk_const >

new szVersion[ ] = "1.1";
new 
szAuthor[ ] = "Asd'";

new 
AuraEnable;
new 
AuraRadius;
new 
AuraModes;
new 
AuraColors;

new 
szColors33 ];
new 
szRed];
new 
szGreen];
new 
szBlue];

public 
plugin_init( ) 
{
    
register_plugin"AuraDamage"szVersionszAuthor );
    
    
AuraEnable register_cvar"amx_auraenable""1" );
    
AuraRadius register_cvar"amx_auraradius""20" );
    
AuraColors register_cvar"amx_auracolors""0 250 0" );
    
AuraModes register_cvar"amx_auramodes""3" );
    
    
RegisterHamHam_TakeDamage"player""Forward_TakeDamage" );
    
    
register_cvar"ad_author"szAuthorFCVAR_SERVER|FCVAR_SPONLY );
    
register_cvar"ad_version"szVersionFCVAR_SERVER|FCVAR_SPONLY );
}

public 
Forward_TakeDamageVictimInflictorAttackerFloat:DamageiDamageBits )
{
    if( !
get_pcvar_numAuraEnable ) )
        return 
HAM_IGNORED;
    
    if( 
iDamageBits == DMG_FALL )
        return 
HAM_IGNORED;
    
    if( 
Attacker == Victim )
        return 
HAM_IGNORED;
    
    new 
TeamVictim get_user_teamVictim );
    new 
TeamAttacker get_user_teamAttacker );
    
    if( 
TeamAttacker == TeamVictim )
        return 
HAM_IGNORED;
    
    new 
OriginIndex];
    
get_user_originVictimOriginIndex );
    
    
message_beginMSG_PVSSVC_TEMPENTITYOriginIndex);
    
write_byteTE_DLIGHT );
    
write_coordOriginIndex] );
    
write_coordOriginIndex] );
    
write_coordOriginIndex] );
    
write_byteget_pcvar_numAuraRadius ) );
    
    switch( 
get_pcvar_numAuraModes ) ) 
    {
        case 
0:
        {
            
write_byte250 );
            
write_byte250 );
            
write_byte250 );
        }
        case 
1
        {
            
get_pcvar_stringAuraColorsszColors32 );
            
parseszColorsszRed3szGreen3szBlue);
            
            new 
iRed clampstr_to_numszRed ), 0250 );
            new 
iGreen clampstr_to_numszGreen ), 0250 );
            new 
iBlue clampstr_to_numszBlue ), 0250 );
            
            
write_byteiRed );
            
write_byteiGreen );
            
write_byteiBlue );
        }
        case 
2
        {
            
write_byterandom_num0250 ) );
            
write_byterandom_num0250 ) );
            
write_byterandom_num0250 ) );
        }
        case 
3
        {
            if ( 
TeamVictim == 
            {
                
write_byte250 );
                
write_byte);
                
write_byte);
            }
            else 
            {
                
write_byte);
                
write_byte);
                
write_byte250 );
            }
        }
    }
    
    
write_byte50 );
    
write_byte100 );
    
message_end( );
    
    return 
HAM_IGNORED;



CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply
#3
Yanıtlanmış taşıyabilirmisiniz ?
Reply
#4
Çözülmüş İsteklere taşındı.


CS:GO ve CS 1.6 için ücretli eklenti yapılır.
Plugin yazmak isteyenlere yardımcı olabilirim.
Skype adresimden ulaşabilirsiniz:
destek_596
Steam: http://steamcommunity.com/id/ca-nemesis/

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Mapa Göre Cvar plugini melof 8 9,378 16-11-20, 02:00
Last Post: es_Dark_Es
  Time 15 Plugini fenerbahce07 24 12,132 23-09-18, 03:19
Last Post: qalatas06
  toplantı plugini bihterr 22 10,685 08-10-17, 14:21
Last Post: kronossbey
  Hosgeldin Plugini hpph1294 9 6,849 03-09-17, 18:08
Last Post: tahayasin
  Jailbreak Banka Plugini sefatokgoz 8 8,135 03-09-17, 18:06
Last Post: tahayasin
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,917 03-09-17, 18:06
Last Post: tahayasin
  250 Hp Plugini Sadece R Yetkisinde Olsun GurkanCounter 8 10,877 03-09-17, 18:04
Last Post: tahayasin
  [JB] CT Özel Hook Grab Rope Plugini Nobb 21 10,725 03-09-17, 18:03
Last Post: tahayasin
  Admin Zombie Model plugini satknun1997 3 3,809 01-01-17, 12:47
Last Post: RuLeT
  (JB) Can Revmenu plugini Furkan Dize 9 6,457 04-10-16, 23:35
Last Post: frozenbaba

Foruma Atla:


Users browsing this thread: 1 Guest(s)