CSGO, Improvement to 'joingame' command
This commit is contained in:
parent
e3d8af0d51
commit
d4448802a4
@ -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));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user