Raised This Month: $ Target: $400
 0% 

[CS:GO] Give player weapon when he already has one


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
seekenz
Member
Join Date: Mar 2015
Location: Poland
Old 03-30-2015 , 06:52   Re: [CS:GO] Give player weapon when he already has one
Reply With Quote #3

I though there is one simple function that does what I want.

If anyone has the same problem, this code solves it
PHP Code:
const int Slot_Primary        0;    /** Primary weapon slot. */
const int Slot_Secondary      1;    /** Secondary weapon slot. */
.
.
.
int temp GetPlayerWeaponSlot(idSlot_Primary);
if( 
temp != -)
    
CS_DropWeapon(idtempfalsetrue); 

Last edited by seekenz; 03-30-2015 at 07:39.
seekenz 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 06:04.


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