View Single Post
Arkarr
Veteran Member
Join Date: Sep 2012
Location: Just behind my PC screen.
Old 10-11-2016 , 12:35   Re: [CS:GO] Change Glove Menu
Reply With Quote #4

Spoiler

That's.... bad. I guess. Instend of doing a lot of test, and settings a way too much boolean, just store the model name in a variable, and then apply it to the client formating the model path with the variable you just usued before. Also, you created "IsValidClient" but never use it.

I would do it like that :
Spoiler

Not tested through. Also, you can improve the code even more by looping through the files in the folder wich contains the gloves. With a for loop as an exemple. Really, when you have so much variable to do a simple task, you might want to re-think your code.
Anyway, good luck for your next plugin ;3 !
__________________
Want to check my plugins ?

Last edited by Arkarr; 10-11-2016 at 12:36.
Arkarr is offline