I have a plugin
PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <fun>
new TechnoPack
new bool:Techno_Pack[33]
public plugin_init()
{
register_plugin("[ZP] Techno Pack", "1.0", "ƒa†es™")
TechnoPack = zp_register_extra_item("Techno Pack ( Techno )", 0, ZP_TEAM_HUMAN)
register_event("HLTV", "event_round_start", "a", "1=0", "2=0")
}
public zp_extra_item_selected(id, itemid)
{
if (itemid == TechnoPack)
{
Techno_Pack[ id ] = true
Glows( id )
client_print(id, print_chat, "[ZP] You have bought a Techno Pack")
}
else
{
Techno_Pack[ id ] = false
remove_task( id, 1 )
client_print(id, print_chat, "[ZP] Techno Pack finish.")
}
}
public event_round_start()
{
for (new id; id <= 32; id++)
{
Techno_Pack[ id ] = false
}
}
public Death()
{
Techno_Pack[ read_data( 2 ) ] = false
}
public Glows( id )
{
set_task(1.0, "Glows", id)
if( is_user_alive( id ) || Techno_Pack[ id ] )
{
set_user_rendering(id, kRenderFxGlowShell, random_num( 0,255 ), random_num( 0,255 ), random_num( 0,255 ), kRenderNormal, 16 )
}
}
Anyone know how to remove_task from set_task(1.0, "Glows", id)
I want when Techno_Pack[ id ] = false
It will remove:
PHP Code:
set_user_rendering(id, kRenderFxGlowShell, random_num( 0,255 ), random_num( 0,255 ), random_num( 0,255 ), kRenderNormal, 16 )
The problem is when Techno_Pack[ id ] = false
The
PHP Code:
set_user_rendering(id, kRenderFxGlowShell, random_num( 0,255 ), random_num( 0,255 ), random_num( 0,255 ), kRenderNormal, 16 )
remain.. i want to remove it.
__________________