Quote:
Originally Posted by Mitchell
quick tip, CPS_SetSkin returns the skin index and will remove any previous skin on the client.
|
HTML Code:
CPS_RemoveSkin(client);
CPS_SetSkin(client, model, CPS_RENDER);
int skin = CPS_GetSkin(client);
So all of that was redundant and could've been one line?
I made this a little while ago so I'm pretty sure I copied this off of some other person's plugin to get an XRAY working, but thanks for the tip! Mostly just posting this because I don't write plugins anymore and I thought (maybe) someone might want to play with this.
__________________