Raised This Month: $ Target: $400
 0% 

[HELP] IN_ATTACK & IN_ATTACK2


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-06-2009 , 15:22   [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #1

Look my code,and tell me what is wrong,plugin dont works


PHP Code:
#include <amxmodx>
#include <fakemeta_util>

#define PLUGIN    "ATTACK BLOCKER"
#define VERSION    "1.0"
#define AUTHOR    "#8 SickneSS"      


/* Boolean */
new bool:b_attack[33]

public 
plugin_init() {
  
    
/* Plugin Registration */
    
register_plugin(PLUGINVERSIONAUTHOR)
  
    
/* Forwards */
    
register_forward(FM_CmdStart,"FwdCmdStart",0)

    
/* Command */
    
register_clcmd("say /godmode","cmdGodmode")
  
}

public 
FwdCmdStart(id,uc_Handle,seed)
{
    if(!
is_user_alive(id) || !b_attack[id])     return FMRES_IGNORED
 
 
    
static button
    button 
get_uc(uc_Handle,UC_Buttons);
  
    if(
button IN_ATTACK) {
      
        
button &= ~IN_ATTACK
    
}
  
    if(
button IN_ATTACK2) {
      
        
button &= ~IN_ATTACK2
    
}
  
    return 
FMRES_IGNORED
}

public 
cleint_disconnect(id) {
  
    
b_attack[id] = false
  
}
public 
cmdGodmode(id) {
  
    
b_attack[id] = true
    fm_set_user_godmode
(id1)
    
set_task(20.0,"cmdRemove",id)
}

public 
cmdRemove(id) {
  
    
b_attack[id] = false
    fm_set_user_godmode
(id0)
  

#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
 


Thread Tools
Display Modes

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 22:36.


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