View Single Post
Tank_in_Pink
Member
Join Date: Feb 2016
Old 03-13-2018 , 09:03   Re: What am I doing wrong?
Reply With Quote #7

Quote:
Originally Posted by hmmmmm View Post
When you're creating a variable that stores client data you want to make sure that it can fit all the cilents. If you make the size only 32 players for example and you get 33 players on your server then you will get issues since their are more players than slots in your array.
MAXPLAYERS is simply a constant provided by sourcemod that translates into the maximum number of players that you can have on the server.


IsValidClient is a function that 1337norway made to ensure that when he does some action with a client that they aren't in some weird state. ie. if the player is still connecting you don't want to do any of this stuff, or if the player is some GOTV bot you don't want to apply that action to them either. You should look at the function definition to see what exactly it does.
Thanks dude, appreciate it :3
Tank_in_Pink is offline