Hello, I'm doing a plugin that change the client (when he send a command) into grey team (or Unassigned team) but the problem is the client can go through everyone.
I tried this :
PHP Code:
Handle hCollide;
public void OnPluginStart()
{
hCollide = FindConVar("tf_avoidteammates");
}
//////////A lot of codes////////////
if(ClientIsOnGreyTeam(client))
SendConVarValue(client, hCollide, "0");
else
SendConVarValue(client, hCollide, "1");
/////////////////////////
stock bool ClientIsOnGreyTeam(int client)
{
///////////some code
}
But it didn't work.
Should I use sdkhooks ?
__________________