Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim
#2
Konu güncellerken belirlenen kurallara uymaya özen gösterelim.

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


Messages In This Thread
Cevap: [İSTEK] CT MAVi - T Kırmızı ışık yanan Plugin + Video Çektim - by akcaliberkk - 28-01-13, 01:53

Possibly Related Threads…
Thread Author Replies Views Last Post
  [İSTEK]Jb Verme Plugini (/mg) NorDan 8 12,920 03-09-17, 18:06
Last Post: tahayasin
  Oyunyonetıcısı plugın kursatyzc 9 11,461 03-09-17, 18:05
Last Post: tahayasin
  [ İSTEK ] Belirli Yetki Hariç 3 Raund Weapon Engel excellenT 15 6,343 21-07-17, 03:49
Last Post: SINCAPP
  [ISTEK] Hızlı Dowload Link [ISTEK] TagaL 13 7,762 05-01-17, 01:30
Last Post: marvel1905
  Menu ve jbmenu istek hamhum 10 12,369 05-01-17, 01:30
Last Post: marvel1905
  İSTEK ! Sadece Ct de hook basabilmek playman01 17 7,526 28-08-16, 14:42
Last Post: QuarsS
  Parlak pelerin plugin lazım artiz42 8 4,688 03-08-16, 20:45
Last Post: murat1366
  Acil Sorun istek hasanx9 6 3,989 03-08-16, 20:44
Last Post: murat1366
  Plugin İstek CFG Tarzı erenstrkl 6 3,772 03-08-16, 20:31
Last Post: murat1366
  Plugin Ufak Ayarlar Config Setting 7 3,489 03-08-16, 20:28
Last Post: murat1366

Foruma Atla:


Users browsing this thread: 1 Guest(s)