Raised This Month: $ Target: $400
 0% 

[STOCK]Set a prop's skin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 06-05-2010 , 08:55   Re: [STOCK]Set a prop's skin
Reply With Quote #1

You don't really need a stock for this. Other than the single line to set the prop, your only other logic is to look for the name of the prop in core.games gamedata, which it will never actually fine unless someone adds it there manually.

PHP Code:
SetEntProp(entProp_Send"m_nSkin"value); 
This is all that is needed. It's the same as setting any other netprop.

@Sammy-ROCK!
SetEntityModel sets the model as the function name suggests. A model can have multiple skins (textures) in it.
psychonic 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 18:16.


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