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

[CS:GO] Give weapon_hkp2000


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
eyal282
Veteran Member
Join Date: Aug 2011
Old 10-05-2018 , 12:30   [CS:GO] Give weapon_hkp2000
Reply With Quote #1

Any time I give myself hkp2000, I get usp_silencer.

I have figured out how to write a bypassing stock and all I need is to know whether or not a weapon is a custom skin ( that costs real money ) or the default skin.
__________________
I am available to make plugins for pay.

Discord: Eyal282#1334
eyal282 is offline
cra88y
AlliedModders Donor
Join Date: Dec 2016
Old 10-05-2018 , 17:05   Re: [CS:GO] Give weapon_hkp2000
Reply With Quote #2

Not sure if you're trying to give them their hkp with a skin (don't think it's possible unless they have it equipped).

But if you just want to detect if they have a skin on their hkp you can just check the netprops i believe.
(m_nFallbackPaintKit)

Last edited by cra88y; 10-05-2018 at 17:07.
cra88y is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 10-09-2018 , 06:26   Re: [CS:GO] Give weapon_hkp2000
Reply With Quote #3

m_nFallbackPaintKit is fallback property.
So it won't return a correct value.
SHUFEN is offline
Send a message via Skype™ to SHUFEN
Ilusion9
Veteran Member
Join Date: Jun 2018
Location: Romania
Old 10-09-2018 , 15:40   Re: [CS:GO] Give weapon_hkp2000
Reply With Quote #4

PHP Code:
["item_equip",["userid","item","canzoom","hassilencer","issilenced","hastracers","weptype","ispainted"]]; 
PHP Code:
eventitem_equip
event
.GetBool("ispainted"); 
Ilusion9 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 12:47.


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