Raised This Month: $51 Target: $400
 12% 

Stock for drop weapon. Need help >"<


Post New Thread Reply   
 
Thread Tools Display Modes
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 05-02-2009 , 19:08   Re: Stock for drop weapon. Need help >"<
Reply With Quote #41

It was to poke fun at you as you were poking fun at me. A "joke". Nevermind
__________________
joaquimandrade is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-03-2009 , 02:08   Re: Stock for drop weapon. Need help >"<
Reply With Quote #42

Quote:
Originally Posted by SchlumPF* View Post
just call him "the portuguese gay"
Fixed.
Arkshine is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-03-2009 , 04:31   Re: Stock for drop weapon. Need help >"<
Reply With Quote #43

PHP Code:
#define PRIMARY_WEAPONS_BIT_SUM ((1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|(1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|(1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)) // You can allways add more 
PHP Code:
stock drop(id
{
    new 
weapons[32], num
    get_user_weapons
(idweaponsnum)
    for (new 
0numi++) {
        if (
PRIMARY_WEAPONS_BIT_SUM & (1<<weapons[i])) 
        {
            static 
wname[32]
            
get_weaponname(weapons[i], wnamesizeof wname 1)
            
engclient_cmd(id"drop"wname)
        }
    } 
Then just put
PHP Code:
drop(id
Into the places you want to strip weapons
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
Dr.G
Senior Member
Join Date: Nov 2008
Old 05-03-2009 , 07:25   Re: Stock for drop weapon. Need help >"<
Reply With Quote #44

Quote:
* Description: Whether or not the player can drop the specified item.
* Forward params: function(this)
* Return type: Integer
* Execute params: ExecuteHam(Ham_CS_Item_CanDrop, this);
*/
Ham_CS_Item_CanDrop
there is also a Ham_DOD_Item_CanDrop i used it like this: http://www.dodplugins.net/forums/showthread.php?t=1579
__________________
Dr.G is offline
5c0r-|3i0
Veteran Member
Join Date: Nov 2008
Location: Việt Nam
Old 05-03-2009 , 08:37   Re: Stock for drop weapon. Need help >"<
Reply With Quote #45

Thanks guys......I understand now ..Can't + karma for you all
__________________
5c0r-|3i0 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 16:19.


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