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ı.
Zombi escape için el sonu ct kazanınca mavi zombi kazanınca kırmızı kararma yapma şansınız varmı.
)

/* 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_ALL, get_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_ALL, get_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_ALL, get_user_msgid("ScreenFade"));
write_byte(255);
write_byte(255);
write_byte(255);
write_byte(255);
write_short(160);
message_end();
}
(22-05-2023, 16:53)Smash Adlı Kullanıcıdan Alıntı:Denedim aga sıkıntısız yüklendi ama kararma felan olmadı hem zombi de hem ct dePHP 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_ALL, get_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_ALL, get_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_ALL, get_user_msgid("ScreenFade"));
write_byte(255);
write_byte(255);
write_byte(255);
write_byte(255);
write_short(160);
message_end();
}
#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;
}(26-05-2023, 15:54)Dorucoglukayra Adlı Kullanıcıdan Alıntı: Not defteri ile yazdım test etmedim.Aga bilgasayar bozuk kontrol edemem yinede eywKod:#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.