CSGO, Improvement to 'joingame' command

This commit is contained in:
zaCade 2017-08-27 00:39:02 +02:00
parent e3d8af0d51
commit d4448802a4

View File

@ -94,6 +94,15 @@ public Action OnJoinTeamCommand(int client, const char[] command, int argc)
if(client < 1 || client >= MaxClients || !IsClientInGame(client))
return Plugin_Continue;
if(StrEqual(command, "joingame", false))
{
if(GetClientTeam(client) != CS_TEAM_NONE)
return Plugin_Continue;
ShowVGUIPanel(client, "team");
return Plugin_Handled;
}
char sArg[8];
GetCmdArg(1, sArg, sizeof(sArg));