⭐🚀 TkyNET | Blacklist ve Profesyonel DDoS Korumalı TeamSpeak 3 Sunucuları 🚀⭐
Sponsor Görsel
🇹🇷 TR Lokasyon | 🛡️ Gelişmiş DDoS Koruması | ⚡ Düşük Ping | 🎧 Kesintisiz TS3 | Hostlar
Sponsor Görsel 2
SponsorSponsor

Zombi Escape EL sonu kararma

Konu

#1
Selâmün aleyküm 
Zombi escape için el sonu ct kazanınca mavi zombi kazanınca kırmızı kararma yapma şansınız varmı.
#2
PHP Kod:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>


public plugin_init()
{
    
register_event("round_end""RoundEnd""a""1=0");
}

public 
RoundEnd(id)
{

    
    if (
get_user_team(id) == 2)
    {
        
set_task(0.1"Blue");
    }
    else if (
get_user_team(id) == 1)
    {
        
set_task(0.1"Red");
    }
}

public 
Blue()
{
    
message_begin(MSG_ALLget_user_msgid("ScreenFade"));
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
write_short(160);
    
message_end();
    
    
set_task(3.0"ResetScreen");
}

public 
Red()
{
    
message_begin(MSG_ALLget_user_msgid("ScreenFade"));
    
write_byte(255);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
write_short(160);
    
message_end();
    
    
set_task(3.0"ResetScreen");
}

public 
ResetScreen()
{
    
message_begin(MSG_ALLget_user_msgid("ScreenFade"));
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_short(160);
    
message_end();

#3
(22-05-2023, 16:53)Smash Adlı Kullanıcıdan Alıntı:
PHP Kod:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>


public plugin_init()
{
    
register_event("round_end""RoundEnd""a""1=0");
}

public 
RoundEnd(id)
{

    
    if (
get_user_team(id) == 2)
    {
        
set_task(0.1"Blue");
    }
    else if (
get_user_team(id) == 1)
    {
        
set_task(0.1"Red");
    }
}

public 
Blue()
{
    
message_begin(MSG_ALLget_user_msgid("ScreenFade"));
    
write_byte(0);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
write_short(160);
    
message_end();
    
    
set_task(3.0"ResetScreen");
}

public 
Red()
{
    
message_begin(MSG_ALLget_user_msgid("ScreenFade"));
    
write_byte(255);
    
write_byte(0);
    
write_byte(0);
    
write_byte(255);
    
write_short(160);
    
message_end();
    
    
set_task(3.0"ResetScreen");
}

public 
ResetScreen()
{
    
message_begin(MSG_ALLget_user_msgid("ScreenFade"));
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_byte(255);
    
write_short(160);
    
message_end();

Denedim aga sıkıntısız yüklendi ama kararma felan olmadı hem zombi de hem ct de
#4
Test edemiyorum. Müsait birisi yardımcı olacaktır.
#5
(22-05-2023, 23:32)Smash Adlı Kullanıcıdan Alıntı: Test edemiyorum. Müsait birisi yardımcı olacaktır.
Tm aga sıkıntı yok eyw
#6
Not defteri ile yazdım test etmedim.

Kod:
#include <amxmodx>
#include <reapi>

new g_MsgScreenFade;

public plugin_init()
{
    register_plugin("El Sonu Fade", "0.1", "LyNcH");

    g_MsgScreenFade = get_user_msgid("ScreenFade");

    RegisterHookChain(RG_RoundEnd, "RoundEnd", .post = true);
}

public RoundEnd()
{
    for(new i = 1; i <= MaxClients; i++)
    {
        if(is_user_connected(i) && is_user_alive(i))
        {
            ScreenFade(i, get_user_team(i));
        }
    }
}

public ScreenFade(const id, iTeam)
{
    message_begin(MSG_ONE_UNRELIABLE, g_MsgScreenFade, {0, 0, 0}, id);

    write_short(FixedUnsigned16(5.0, 1<<12));
    write_short(FixedUnsigned16(5.0, 1<<12));
    write_short((0x0000));
    write_byte(iTeam == 1 ? 255:0);
    write_byte(0);
    write_byte(iTeam == 1 ? 0:255);
    write_byte(200);

    message_end();
}

FixedUnsigned16(const Float:flValue, const iScale)
{
    new iOutput;

    iOutput = floatround(flValue * iScale);

    if ( iOutput < 0 )
        iOutput = 0;

    if ( iOutput > 0xFFFF )
        iOutput = 0xFFFF;

    return iOutput;
}


Konunuz çözüldüyse bildiriniz, aksi takdirde ceza alacaksınız.
Steam:Tıkla • Discord: lynchk
#7
(26-05-2023, 15:54)Dorucoglukayra Adlı Kullanıcıdan Alıntı: Not defteri ile yazdım test etmedim.

Kod:
#include <amxmodx>
#include <reapi>

new g_MsgScreenFade;

public plugin_init()
{
    register_plugin("El Sonu Fade", "0.1", "LyNcH");

    g_MsgScreenFade = get_user_msgid("ScreenFade");

    RegisterHookChain(RG_RoundEnd, "RoundEnd", .post = true);
}

public RoundEnd()
{
    for(new i = 1; i <= MaxClients; i++)
    {
        if(is_user_connected(i) && is_user_alive(i))
        {
            ScreenFade(i, get_user_team(i));
        }
    }
}

public ScreenFade(const id, iTeam)
{
    message_begin(MSG_ONE_UNRELIABLE, g_MsgScreenFade, {0, 0, 0}, id);

    write_short(FixedUnsigned16(5.0, 1<<12));
    write_short(FixedUnsigned16(5.0, 1<<12));
    write_short((0x0000));
    write_byte(iTeam == 1 ? 255:0);
    write_byte(0);
    write_byte(iTeam == 1 ? 0:255);
    write_byte(200);

    message_end();
}

FixedUnsigned16(const Float:flValue, const iScale)
{
    new iOutput;

    iOutput = floatround(flValue * iScale);

    if ( iOutput < 0 )
        iOutput = 0;

    if ( iOutput > 0xFFFF )
        iOutput = 0xFFFF;

    return iOutput;
}


Konunuz çözüldüyse bildiriniz, aksi takdirde ceza alacaksınız.
Aga bilgasayar bozuk kontrol edemem yinede eyw
#8
İstek konusu, @"orucoglukayra" adlı kullanıcı tarafından 8 gün içinde çözülmüştür.
İsteği çözdüğü için orucoglukayra Adlı kullanıcıya 1 rep puanı ve 1 yardım etme puanı otomatik olarak verilmiştir.
orucoglukayra Adlı kullanıcı sizin dışınızda toplam 661 kişiye yardım etmiştir.

Herhangi bir konuda hata olduğunu düşünüyorsanız destek sistemi üzerinden iletişim kurabilirsiniz.

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da