View Single Post
AuTok1NGs
Junior Member
Join Date: Oct 2016
Location: Israel
Old 10-11-2016 , 13:10   Re: [CS:GO] Change Glove Menu
Reply With Quote #7

Quote:
Originally Posted by Arkarr View Post
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 !
When I Do This "PrintToChat(client, " \x04[AKz] \x07You Choosed \x02%s \x07Glove", model);"
Its say model code...

Last edited by AuTok1NGs; 10-11-2016 at 13:12.
AuTok1NGs is offline