17.02.2018, 17:46
You just have to put the right checks at the right place and make sure to add a if statement which checks for the playerid (the ID of the player who is killed) to be less than the MAX_PLAYERS amount because many hacks now push invalid IDs except for INVALID_PLAYER_ID, which is 65535, such as passing ID 101, 102 etc when your server is of 100 slots (just an example).