Raised This Month: $ Target: $400
 0% 

[HELP] IN_ATTACK & IN_ATTACK2


Post New Thread Reply   
 
Thread Tools Display Modes
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
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-06-2009 , 15:24   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #2

You forget to set buttons back
__________________
xPaw is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-06-2009 , 15:24   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #3

What are you trying to do?
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-06-2009 , 15:28   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #4

a plugin
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-06-2009 , 15:33   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #5

set_uc(uc_Handle,UC_Buttons, button );
__________________
Arkshine is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-06-2009 , 15:51   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #6

Works,thanks;)
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-06-2009 , 15:53   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #7

PHP Code:
public cleint_disconnect(id

PHP Code:
public client_disconnect(id
__________________
I am out of order!
grimvh2 is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 10-06-2009 , 16:04   Re: [HELP] IN_ATTACK & IN_ATTACK2
Reply With Quote #8

xD!

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



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