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

[CS GO]How to give player silencer weapons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kondzixd
Member
Join Date: Sep 2010
Old 02-27-2015 , 06:43   [CS GO]How to give player silencer weapons
Reply With Quote #1

Hi. I try to give a player silencer m4a1 and usp like that:

GivePlayerItem(client, "weapon_m4a1_silencer");
GivePlayerItem(client, "weapon_usp_silencer");

But it does not work. Could u help me?
kondzixd is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 02-27-2015 , 08:50   Re: [CS GO]How to give player silencer weapons
Reply With Quote #2

Define "does not work".
Works fine here.
xf117 is offline
Send a message via ICQ to xf117
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-27-2015 , 09:25   Re: [CS GO]How to give player silencer weapons
Reply With Quote #3

If you give to a client weapon_m4a1 and the client have in his inventory equipped weapon_m4a1_silencer then they receive weapon_m4a1_silencer instead of weapon_m4a1

This bug occur if you have this extension in your server -> https://forums.alliedmods.net/showthread.php?t=236199

If you dont have this extension, then the client will receive the weapons correctly (regardless his inventory). I TESTED it.

EDIT: Solved -> https://forums.alliedmods.net/showpo...8&postcount=86
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 02-28-2015 at 08:10.
Franc1sco is offline
Send a message via MSN to Franc1sco
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:52.


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