Permalink
Browse files

Prevent dead players from using radio (#266)

Dead players currently can ghost.
  • Loading branch information...
PRAWKC authored and Bara committed Dec 24, 2017
1 parent 9fc0100 commit 9dc5464eb1a0a3c0848fd4063de8a761adee253d
Showing with 6 additions and 0 deletions.
  1. +6 −0 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);

0 comments on commit 9dc5464

Please sign in to comment.