Alguem me passa a .sma do Screenfade
Se ajudar do rep+
Se ajudar do rep+
Código:
#include <amxmodx>
#include <zombieplague>
new const PLUGIN[] = "[ZP] Addon: Win ScreenFade";
new const VERSION[] = "1.0";
new const AUTHOR[] = "MercedeS";
new g_msgScreenFade;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
g_msgScreenFade = get_user_msgid("ScreenFade");
}
public zp_round_ended(winteam)
{
switch(winteam)
{
case WIN_HUMANS:
{
ScreenFade(0, 0, 255);
}
case WIN_ZOMBIES:
{
ScreenFade(255, 0, 0);
}
case WIN_NO_ONE:
{
ScreenFade(255, 255, 255);
}
}
}
public ScreenFade(red, green, blue)
{
message_begin(MSG_BROADCAST, g_msgScreenFade);
write_short((1<<12)*4);
write_short((1<<12)*1);
write_short(0x0001);
write_byte(red);
write_byte(green);
write_byte(blue);
write_byte(250);
message_end();
}
[P]erfec[T] [S]cr[@]s[H] escreveu:Tá aqui amigo olhe:Código:
#include <amxmodx>
#include <zombieplague>
new const PLUGIN[] = "[ZP] Addon: Win ScreenFade";
new const VERSION[] = "1.0";
new const AUTHOR[] = "MercedeS";
new g_msgScreenFade;
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
g_msgScreenFade = get_user_msgid("ScreenFade");
}
public zp_round_ended(winteam)
{
switch(winteam)
{
case WIN_HUMANS:
{
ScreenFade(0, 0, 255);
}
case WIN_ZOMBIES:
{
ScreenFade(255, 0, 0);
}
case WIN_NO_ONE:
{
ScreenFade(255, 255, 255);
}
}
}
public ScreenFade(red, green, blue)
{
message_begin(MSG_BROADCAST, g_msgScreenFade);
write_short((1<<12)*4);
write_short((1<<12)*1);
write_short(0x0001);
write_byte(red);
write_byte(green);
write_byte(blue);
write_byte(250);
message_end();
}
Espero Ter Ajudado !!!!!!!!!