Hello,
I think the best way to learn a programming/script language is with doing something. And I experienced that I only code small code snippets that I delete every single time and
didn't learn anything/very much. So I made this little addon/script which adds some commands for VCMod.
I would appreciate it if someone gives me feedback of my code. Maybe I'm doing something wrong and I didn't noticed it. I already started some issues on GitHub so you can
see on what i'm currently working on.
Thanks!
Link: GitHub
you are doing it great! Really clean code, i like it
I would like to give you some corrections although!
VCMod server file, you are verifying if player is valid in every function, you can just do it inside playersay hook, also i'm not sure why did you define usergroup outside function scopes where ply it's not valid, you should check the usergroup in playersay hook!
Also i woul recommend you to use local functions than globals, besides that keep learning, you're doing it great!
was lazy to make a pull request, here are some improvements
Thanks, I already want to push the new commits but for first I need to take a look at @Srlion 's code.
Thanks, I will look into it.
Made a pull request that has proper group checking and makes the functions local, to prevent addon conflictions
Sorry, you need to Log In to post a reply to this thread.