Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Map başında ekrana renk gelmesi
#1
Öncelikle merhaba.
İstediğim plugin forumda vardı fakat ekrana yazı geliyordu.
İstediğim plugin map başında CT'de olanlara mavi T'de olanlara kırmızı ışık gelecek ekrana (saydam bir ışık)
Bu renk ekranda 3 saniye kalacak sonra gidecek
Şimdiden teşekkürler iyi forumlar herkese.
[center]
La'brigade # Gaming Bir Gün Değil Her Gün Kral !
Cs 1.6 Server : CS.LabrigadeGaming.Com
TeamSpeak3 Server : Ts3.LabrigadeGaming.Com
Msn : [email protected]
Facebook : http://www.facebook.com/LabrigadeClan
Skype : HijyeniK

[Image: ftt17.png]
[/center]
Reply
#2
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

#define PLUGIN "istek plugin"
#define VERSION "1.0"
#define AUTHOR "K4DavRa"


#define FFADE_IN        0x0000        
#define FFADE_OUT            0x0001        
#define FFADE_MODULATE        0x0002        
#define FFADE_STAYOUT        0x0004


enum {
    
Red,
    
Green,
    
Blue
}

new 
bool:engel false

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_logevent("Event_Round_Start"2"1=Round_Start")
}
public 
Event_Round_Start()
{
    if(
engel) {
        return 
PLUGIN_HANDLED
    
}
    for(new 
id 1id 33id++) {
        if(
is_user_connected(id) && is_user_alive(id)) {
            
set_task(0.5,"Sec",id)
        }
    }
    
engel true
    
return PLUGIN_CONTINUE
}

public 
Sec(id)
{
    if(
get_user_team(id) == 1) {
        
        
UTIL_ScreenFade(id,{100,0,0},1.0,0.2,255,FFADE_IN,false,false//kirmizi
    
}else { 
        
UTIL_ScreenFade(id,{0,0,255},1.0,0.2,255,FFADE_IN,false,false)   //mavi
    
}

}

stock UTIL_ScreenFade(id=0,iColor[3]={0,0,0},Float:flFxTime=-1.0,Float:flHoldTime=0.0,iAlpha=0,iFlags=FFADE_IN,bool:bReliable=false,bool:bExternal=false)
{
    if( 
id && !is_user_connected(id))
        return;
    
    new 
iFadeTime;
    if( 
flFxTime == -1.0 )
    {
        
iFadeTime 4;
    }
    else
    {
        
iFadeTime FixedUnsigned16flFxTime 1<<12 );
    }
    
    static 
gmsgScreenFade;
    if( !
gmsgScreenFade )
    {
        
gmsgScreenFade get_user_msgid("ScreenFade");
    }
    
    new 
MSG_DEST;
    if( 
bReliable )
    {
        
MSG_DEST id MSG_ONE MSG_ALL;
    }
    else
    {
        
MSG_DEST id MSG_ONE_UNRELIABLE MSG_BROADCAST;
    }
    
    if( 
bExternal )
    {
        
emessage_beginMSG_DESTgmsgScreenFade_id );
        
ewrite_shortiFadeTime );
        
ewrite_shortFixedUnsigned16flHoldTime 1<<12 ) );
        
ewrite_shortiFlags );
        
ewrite_byteiColor[Red] );
        
ewrite_byteiColor[Green] );
        
ewrite_byteiColor[Blue] );
        
ewrite_byteiAlpha );
        
emessage_end();
    }
    else
    {
        
message_beginMSG_DESTgmsgScreenFade_id );
        
write_shortiFadeTime );
        
write_shortFixedUnsigned16flHoldTime 1<<12 ) );
        
write_shortiFlags );
        
write_byteiColor[Red] );
        
write_byteiColor[Green] );
        
write_byteiColor[Blue] );
        
write_byteiAlpha );
        
message_end();
    }
}

stock FixedUnsigned16(Float:flValueiScale)
{
    new 
iOutput;
    
    
iOutput floatround(flValue iScale);
    
    if ( 
iOutput )
        
iOutput 0;
    
    if ( 
iOutput 0xFFFF )
        
iOutput 0xFFFF;
    
    return 
iOutput;



Attached Files
.sma   renkler.sma (Size: 2.41 KB / Downloads: 50)
.amxx   renkler.amxx (Size: 3.71 KB / Downloads: 43)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Damege vurdugunda vuran kisiye HP gelmesi xLdeJavu 8 3,152 16-11-13, 23:45
Last Post: xLdeJavu
  [JB] Birisini Öldürünce Bomba Gelmesi Nobb 14 7,116 06-08-13, 20:41
Last Post: akcaliberkk
  Cross renk melof 9 3,928 16-04-13, 21:59
Last Post: akcaliberkk
  &quot;q&quot; harfi verdiğim kişilereyeşil yazabilme özelliği gelmesi sinan_604 3 3,010 05-02-13, 00:59
Last Post: hurracuran
  Renk PLugini dracula266 3 2,939 04-02-13, 04:37
Last Post: akcaliberkk

Foruma Atla:


Users browsing this thread: 1 Guest(s)