Raised This Month: $ Target: $400
 0% 

block shooting


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jasonf20
Junior Member
Join Date: Mar 2008
Old 08-28-2008 , 12:12   block shooting
Reply With Quote #1

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
:-P

help is greatly appriciated
jasonf20 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-28-2008 , 12:16   Re: block shooting
Reply With Quote #2

Using offset 83 with set_pdata_int() and with a high value, like 9999.0 ( 83 = next attack )
__________________
Arkshine is offline
jasonf20
Junior Member
Join Date: Mar 2008
Old 08-28-2008 , 13:20   Re: block shooting
Reply With Quote #3

hehe thnx :-P but i understood nothing can u pls give an example?
jasonf20 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 08-28-2008 , 13:27   Re: block shooting
Reply With Quote #4

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.
__________________
Arkshine is offline
jasonf20
Junior Member
Join Date: Mar 2008
Old 08-28-2008 , 13:31   Re: block shooting
Reply With Quote #5

ok cool thanx man
jasonf20 is offline
jasonf20
Junior Member
Join Date: Mar 2008
Old 08-28-2008 , 13:37   Re: block shooting
Reply With Quote #6

hmm that works but if i change weapons i can shoot again
any idea?
jasonf20 is offline
[X]-RayCat
Senior Member
Join Date: Sep 2006
Old 08-28-2008 , 13:39   Re: block shooting
Reply With Quote #7

Quote:
Originally Posted by jasonf20 View Post
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.
[X]-RayCat is offline
jasonf20
Junior Member
Join Date: Mar 2008
Old 08-28-2008 , 13:42   Re: block shooting
Reply With Quote #8

nvm man i managed to get it but it still blockes knife but its no biggie thanks alot
jasonf20 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 15:37.


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