Raised This Month: $ Target: $400
 0% 

pistol restriction


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
amxmx
New Member
Join Date: May 2011
Old 05-01-2011 , 08:36   pistol restriction
Reply With Quote #1

Disallow pistol.
amxmx is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-01-2011 , 17:31   Re: pistol restriction
Reply With Quote #2

Code:
#include < amxmodx > #include < fakemeta > #include < hamsandwich > #define m_pPlayer 41 #define m_iId 43 public plugin_init( ) {     register_plugin( "No Pistols", "0.0.1", "Exolent" );         new const iPistolWeaponIDs[ ] =     {         CSW_USP,         CSW_GLOCK18,         CSW_P228,         CSW_DEAGLE,         CSW_FIVESEVEN,         CSW_ELITE     };         new szClassName[ 32 ];         for( new i = 0; i < sizeof( iPistolWeaponIDs ); i++ )     {         if( get_weaponname( iPistolWeaponIDs[ i ], szClassName, charsmax( szClassName ) ) )         {             RegisterHam( Ham_Item_Deploy, szClassName, "FwdItemDeployPost", 1 );         }     } } public FwdItemDeployPost( iEntity ) {     new iPlayer = get_pdata_cbase( iEntity, m_pPlayer, 4 );     new iWeaponID = get_pdata_int( iEntity, m_iId, 4 );         ExecuteHam( Ham_Weapon_RetireWeapon, iEntity );     ExecuteHam( Ham_RemovePlayerItem, iPlayer, iEntity );     ExecuteHam( Ham_Item_Kill, iEntity );         set_pev( iPlayer, pev_weapons, ( pev( iPlayer, pev_weapons ) & ~( 1 << iWeaponID ) ) );         return HAM_HANDLED; }
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!

Last edited by Exolent[jNr]; 05-03-2011 at 05:04.
Exolent[jNr] is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 05-02-2011 , 01:17   Re: pistol restriction
Reply With Quote #3

This only T how can we do?
__________________
Erdener is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-02-2011 , 16:28   Re: pistol restriction
Reply With Quote #4

Try the new version (I edited my post).
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Erdener
Senior Member
Join Date: Apr 2010
Location: Turkey
Old 05-03-2011 , 04:05   Re: pistol restriction
Reply With Quote #5

Not compile
__________________
Erdener is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-03-2011 , 05:04   Re: pistol restriction
Reply With Quote #6

Fixed.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 00:37.


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