- Código:
#include < amxmodx >
#include < zombieplague >
#include < fun >
new const PLUGIN_NAME[ ] = " [ ZP ] First Zombie Invis ";
new const PLUGIN_VERSION[ ] = "1.0";
new const PLUGIN_AUTHOR[ ] = "Shurik07";
const TIME_INVISISIBLE = 10;
const AMOUNT_INVISISIBLE = 0;
static g_iCoolDown[ 33 ];
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
}
public zp_user_infected_post ( pPlayer , pInfector , pNemesis )
{
if( !is_user_alive ( pPlayer ) )
{
return;
}
if ( zp_get_user_first_zombie ( pPlayer ) )
{
set_user_rendering( pPlayer , kRenderFxGlowShell, 225, 225, 225, kRenderTransAlpha, AMOUNT_INVISISIBLE );
client_print ( pPlayer , print_center , "Вы первый зомби , вы видимый на %d процентов", AMOUNT_INVISISIBLE );
set_task( 1.0, "UTIL_ShowCold", pPlayer, _, _, "b" );
g_iCoolDown[ pPlayer ] = TIME_INVISISIBLE;
}
}
public UTIL_ShowCold ( pPlayer )
{
if ( g_iCoolDown[ pPlayer ] <= 0 )
{
remove_task( pPlayer );
set_user_rendering( pPlayer );
return;
}
g_iCoolDown[ pPlayer ] --;
client_print ( pPlayer , print_center , "Вы станете видимым через %d секунд" , g_iCoolDown[ pPlayer ] );
}
Isto é uma pré-visualização de um tema em Hitskin.com
Instalar o tema • Voltar para a ficha do tema