Permalink
Browse files

Merge branch 'master' of https://github.com/Bara/TroubleinTerroristTown

  • Loading branch information...
Bara committed Dec 27, 2017
2 parents b0e4ba7 + 9dc5464 commit 71874710cffb29fb8d23ff047e30e4ddcc2e2e51
Showing with 7 additions and 5 deletions.
  1. +7 −5 addons/sourcemod/scripting/ttt/ttt_radio.sp
@@ -57,6 +57,12 @@ public Action Command_Radio(int client, int args)
return Plugin_Handled;
}
if (!IsPlayerAlive(client))
{
CPrintToChat(client, "%s %T", g_sPluginTag, "YouAreDead", client);
return Plugin_Handled;
}
if (args == 0)
{
ShowRadioMenu(client);
@@ -69,14 +75,10 @@ public Action Command_Radio(int client, int args)
char sColor[16];
int role = TTT_GetClientRole(client);
if (role == TTT_TEAM_INNOCENT)
if (role == TTT_TEAM_INNOCENT || role == TTT_TEAM_TRAITOR)
{
Format(sColor, sizeof(sColor), "green");
}
else if (role == TTT_TEAM_TRAITOR)
{
Format(sColor, sizeof(sColor), "darkred");
}
else if (role == TTT_TEAM_DETECTIVE)
{
Format(sColor, sizeof(sColor), "darkblue");

0 comments on commit 7187471

Please sign in to comment.