CSGO: disallow to change a team

Please post any questions about developing your plugin here. Please use the search function before posting!
nullable
Senior Member
Posts: 137
Joined: Sat Nov 08, 2014 7:22 pm

CSGO: disallow to change a team

Postby nullable » Mon Jul 27, 2015 7:37 pm

Hello,

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

Best Regards.
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Mon Jul 27, 2015 7:44 pm

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
nullable
Senior Member
Posts: 137
Joined: Sat Nov 08, 2014 7:22 pm

Postby nullable » Mon Jul 27, 2015 7:52 pm

Ok. Thanks. And how about to disallow use console command?
User avatar
L'In20Cible
Project Leader
Posts: 1533
Joined: Sat Jul 14, 2012 9:29 pm
Location: Québec

Postby L'In20Cible » Mon Jul 27, 2015 7:54 pm

That is exactly what the code above does.
nullable
Senior Member
Posts: 137
Joined: Sat Nov 08, 2014 7:22 pm

Postby nullable » Thu Aug 13, 2015 5:43 am

Thanks. It's works.

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 141 guests