Raised This Month: $ Target: $400
 0% 

Block reload


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 07-10-2013 , 15:48   Block reload
Reply With Quote #1

Trying to block reload but it doesnt block

Code:
RegisterHam(Ham_Weapon_Reload, "weapon_m249", "Reload_Post", 1);
Code:
public Reload_Post(weapon_entity) 
{
 if( !e_LD )  
  return HAM_IGNORED 
  
 new iPlayer = pev(weapon_entity, pev_owner);
 
 if( ( iPlayer != iPlayer_LastGuard ) && ( iPlayer != iPlayer_LastPrisoner ) || !is_user_alive( iPlayer ) ) 
  return HAM_SUPERCEDE;
 return HAM_IGNORED;
}
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Bos93
Veteran Member
Join Date: Jul 2010
Old 07-10-2013 , 16:50   Re: Block reload
Reply With Quote #2

block reload in post ? maybe pre reload ?

change 1 to 0 in register
__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 07-10-2013 , 18:42   Re: Block reload
Reply With Quote #3

You cann't block in Post.
__________________
simanovich is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 07-10-2013 , 20:13   Re: Block reload
Reply With Quote #4

Quote:
Originally Posted by simanovich View Post
You cann't block in Post.
nope.
__________________

Last edited by Bos93; 07-10-2013 at 20:14.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 07-11-2013 , 05:52   Re: Block reload
Reply With Quote #5

Quote:
Originally Posted by Bos93 View Post
nope.
Post is called after an action (In this case: Weapon Reload)
__________________
simanovich is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 07-11-2013 , 06:37   Re: Block reload
Reply With Quote #6

Quote:
Originally Posted by simanovich View Post
Post is called after an action (In this case: Weapon Reload)
That's what he refers
Quote:
Originally Posted by Bos93 View Post
block reload in post ? maybe pre reload ?

change 1 to 0 in register
baneado is offline
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 06:27.


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