AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Block reload (https://forums.alliedmods.net/showthread.php?t=220432)

ironskillz1 07-10-2013 15:48

Block reload
 
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;
}


Bos93 07-10-2013 16:50

Re: Block reload
 
block reload in post ? maybe pre reload ?

change 1 to 0 in register

simanovich 07-10-2013 18:42

Re: Block reload
 
You cann't block in Post.

Bos93 07-10-2013 20:13

Re: Block reload
 
Quote:

Originally Posted by simanovich (Post 1988036)
You cann't block in Post.

nope.

simanovich 07-11-2013 05:52

Re: Block reload
 
Quote:

Originally Posted by Bos93 (Post 1988143)
nope.

Post is called after an action (In this case: Weapon Reload)

baneado 07-11-2013 06:37

Re: Block reload
 
Quote:

Originally Posted by simanovich (Post 1988389)
Post is called after an action (In this case: Weapon Reload)

That's what he refers
Quote:

Originally Posted by Bos93 (Post 1987957)
block reload in post ? maybe pre reload ?

change 1 to 0 in register



All times are GMT -4. The time now is 06:27.

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