AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   block shooting (https://forums.alliedmods.net/showthread.php?t=76672)

jasonf20 08-28-2008 12:12

block shooting
 
hey
i need to know the simplest way to stop somone form being abnle to shoot
knife is fine but i dont want them to shoot..
and must do this without striping weapons :shock:
:-P

help is greatly appriciated

Arkshine 08-28-2008 12:16

Re: block shooting
 
Using offset 83 with set_pdata_int() and with a high value, like 9999.0 ( 83 = next attack )

jasonf20 08-28-2008 13:20

Re: block shooting
 
hehe thnx :-P but i understood nothing can u pls give an example?

Arkshine 08-28-2008 13:27

Re: block shooting
 
set_pdata_int ( id, 83, 9999.0 ); and the player will not be able to shoot for a while.

set_pdata_int ( id, 83, -0.001 ); and the player will be able to shoot again.

jasonf20 08-28-2008 13:31

Re: block shooting
 
ok cool thanx man :)

jasonf20 08-28-2008 13:37

Re: block shooting
 
hmm that works but if i change weapons i can shoot again
any idea?

[X]-RayCat 08-28-2008 13:39

Re: block shooting
 
Quote:

Originally Posted by jasonf20 (Post 677369)
hmm that works but if i change weapons i can shoot again
any idea?

Why didnt you edit your last post? Try setting it in current weapon event. :)

jasonf20 08-28-2008 13:42

Re: block shooting
 
nvm man i managed to get it but it still blockes knife but its no biggie thanks alot


All times are GMT -4. The time now is 03:17.

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