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

[CS:GO] CS_DropWeapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
andrept4
Senior Member
Join Date: Dec 2012
Location: Portugal
Old 07-06-2016 , 17:38   [CS:GO] CS_DropWeapon
Reply With Quote #1

Hello, if i want to give a player a pistol, and he has already a pistol in slot 2, can i use CS_DropWeapon to make the player drop the pistol and get the new one ? If so, how ?
__________________

Last edited by andrept4; 07-06-2016 at 17:39.
andrept4 is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 07-06-2016 , 21:35   Re: [CS:GO] CS_DropWeapon
Reply With Quote #2

PHP Code:
new weapon GetPlayerWeaponSlot(client1)
if (
weapon != -1)
CS_DropWeapon(clientweapon)
GivePlayerItem(client"weapon_deagle"
should work
__________________
8guawong is offline
andrept4
Senior Member
Join Date: Dec 2012
Location: Portugal
Old 07-07-2016 , 05:27   Re: [CS:GO] CS_DropWeapon
Reply With Quote #3

Works perfectly! Thank you ;)
__________________
andrept4 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 01:06.


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