Raised This Month: $ Target: $400
 0% 

Disabling any attacking of any sort?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 07-07-2010 , 18:10   Disabling any attacking of any sort?
Reply With Quote #1

I don't want people to be able to attack, but it looks as if they still have a knife when they're in first person.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 07-07-2010 , 20:49   Re: Disabling any attacking of any sort?
Reply With Quote #2

Code:
// Requires amxmodx, fakemeta, and fun const WEAPONS_EXTRA_OFFSET      = 4 const m_flNextPrimaryAttack     = 46 const m_flNextSecondaryAttack   = 47 GivePlayerKnife( id ) {     new iKnife = give_item( id, "weapon_knife" )         if( iKnife )     {         set_pdata_float( iKnife, m_flNextPrimaryAttack, 99999.9, WEAPONS_EXTRA_OFFSET )         set_pdata_float( iKnife, m_flNextSecondaryAttack, 99999.9, WEAPONS_EXTRA_OFFSET )     }         return iKnife; }
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT

Last edited by wrecked_; 07-07-2010 at 21:00.
wrecked_ 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 07:15.


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