11.04.2017, 13:36
I see that you are checking if the player is a RCON admin, but you are not checking if the player "pAdmin" variable is 1 or higher when using /god command.
As I see from the onplayertakedamage code, it should only work if the pAdmin variable of the player is smaller than 1, so maybe who got headshotted did not have this variable on.
Also you used
|| !IsPlayerAdmin
which means "If player is not admin rcon then he can get a headshot"
As I see from the onplayertakedamage code, it should only work if the pAdmin variable of the player is smaller than 1, so maybe who got headshotted did not have this variable on.
Also you used
|| !IsPlayerAdmin
which means "If player is not admin rcon then he can get a headshot"