Raised This Month: $ Target: $400
 0% 

Can someone teach me something ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
ƒa†es™
Senior Member
Join Date: May 2009
Location: Garena
Old 06-25-2009 , 04:26   Can someone teach me something ?
Reply With Quote #1

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 )"0ZP_TEAM_HUMAN)
 
register_event("HLTV""event_round_start""a""1=0""2=0")
}
 
public 
zp_extra_item_selected(iditemid)
{
 if (
itemid == TechnoPack)
 {      
             
Techno_Packid ] = true  
 
             Glows
id )
 
             
client_print(idprint_chat"[ZP] You have bought a Techno Pack")
 }
 
 else
 {
             
Techno_Packid ] = false
             remove_task
id
             
client_print(idprint_chat"[ZP] Techno Pack finish.")
  }
 
}       
 
public 
event_round_start()
{
 for (new 
idid <= 32id++)
 {
             
Techno_Packid ] = false
  
}

}
 
public 
Death()
{
 
Techno_Packread_data) ] = false
}
 
public 
Glowsid )
{
     
set_task(1.0"Glows"id)
     if( 
is_user_aliveid ) || Techno_Packid ] )
     {
             
set_user_rendering(idkRenderFxGlowShell,  random_num0,255 ),  random_num0,255 ),  random_num0,255 ), kRenderNormal16 )
     }

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(idkRenderFxGlowShell,  random_num0,255 ),  random_num0,255 ),  random_num0,255 ), kRenderNormal16 
The problem is when Techno_Pack[ id ] = false

The
PHP Code:
             set_user_rendering(idkRenderFxGlowShell,  random_num0,255 ),  random_num0,255 ),  random_num0,255 ), kRenderNormal16 
remain.. i want to remove it.
__________________

Last edited by ƒa†es™; 06-25-2009 at 04:28.
ƒa†es™ is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode