Raised This Month: $ Target: $400
 0% 

Drop all weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
algiuxas
Junior Member
Join Date: Oct 2010
Old 10-21-2010 , 08:38   Drop all weapons
Reply With Quote #1

Hi Allied Modders comunity!

I have this code:

Code:
public vpar(id)
{
    if(armor_active[id] == 1)
    {
        give_item(id,"item_assaultsuit")
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_flashbang")
        give_item(id,"weapon_hegrenade")
        give_item(id,"weapon_smokegrenade")
        client_print(id, print_chat, "[VIP]: Received armor and nades")
    }
}
How can I make player drop all weapons except knife player currently have before giving nades?
algiuxas is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-21-2010 , 08:39   Re: Drop all weapons
Reply With Quote #2

strip_user_weapons() then give knife + nades.
__________________

Last edited by Arkshine; 10-21-2010 at 10:42.
Arkshine is offline
algiuxas
Junior Member
Join Date: Oct 2010
Old 10-21-2010 , 08:44   Re: Drop all weapons
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
strip_user_weapons() then give kinfe + nadeS.
Thanks for speed reply
algiuxas 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 10:26.


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