Raised This Month: $ Target: $400
 0% 

Dropped weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 06-04-2009 , 10:53   Re: Dropped weapons
Reply With Quote #9

Quote:
Originally Posted by Debesėlis View Post
PHP Code:
dropPrimaryWeapons(id)
{
    new 
weaponID get_pdata_cbase(idm_pLastPrimaryItem)

    while(
weaponID != -1)
    {
        
dropWeapon(idweaponID)    
         
weaponID get_pdata_cbase(idm_pLastPrimaryItem)
    }
}

dropSecondaryWeapons(id)
{
    new 
weaponID get_pdata_cbase(idm_pLastSecondaryItem)

    while(
weaponID != -1)
    {
        
dropWeapon(idweaponID)    
        
weaponID get_pdata_cbase(idm_pLastSecondaryItem)
    }        
}

dropWeapon(playerIDweaponID)
{
    static 
weaponName[32]
    
pev(weaponIDpev_classnameweaponNamecharsmax(weaponName))

    
engclient_cmd(playerID"drop"weaponName)

This code is drop weapons. I need to strip all the weapons except c4, m4a1, ak47 and usp.
Tell me one thing.

In this code: http://forums.alliedmods.net/showpos...5&postcount=12

What is missing except the part of changing drop to strip?
__________________
joaquimandrade is offline
 



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 13:52.


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