AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Disabling any attacking of any sort? (https://forums.alliedmods.net/showthread.php?t=131689)

GXLZPGX 07-07-2010 18:10

Disabling any attacking of any sort?
 
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.

wrecked_ 07-07-2010 20:49

Re: Disabling any attacking of any sort?
 
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; }


All times are GMT -4. The time now is 07:15.

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