Page 1 of 1

CSGO: disallow to change a team

Posted: Mon Jul 27, 2015 7:37 pm
by nullable
Hello,

Is it possible disallow player to change a team in game?

Best Regards.

Posted: Mon Jul 27, 2015 7:44 pm
by L'In20Cible
You could simply hook "jointeam":

Syntax: Select all

from commands import CommandReturn
from commands.client import ClientCommand

@ClientCommand('jointeam')
def jointeam_callback(player_info, command):
return CommandReturn.BLOCK

Posted: Mon Jul 27, 2015 7:52 pm
by nullable
Ok. Thanks. And how about to disallow use console command?

Posted: Mon Jul 27, 2015 7:54 pm
by L'In20Cible
That is exactly what the code above does.

Posted: Thu Aug 13, 2015 5:43 am
by nullable
Thanks. It's works.