AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Drop all weapons (https://forums.alliedmods.net/showthread.php?t=141235)

algiuxas 10-21-2010 08:38

Drop all weapons
 
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?

Arkshine 10-21-2010 08:39

Re: Drop all weapons
 
strip_user_weapons() then give knife + nades.

algiuxas 10-21-2010 08:44

Re: Drop all weapons
 
Quote:

Originally Posted by Arkshine (Post 1330873)
strip_user_weapons() then give kinfe + nadeS.

Thanks for speed reply :)


All times are GMT -4. The time now is 10:25.

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