You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -118,13 +118,16 @@ public void OnCoinThrowCommand(CCSPlayerController? player, CommandInfo command)
118
118
player.PrintToChat($"You can throw the coin only once every {ChatColors.DarkRed}10 {ChatColors.Default}seconds!");
119
119
return;
120
120
}
121
-
121
+
122
122
Randomrandom=newRandom();
123
123
boolcoinResult=random.Next(2)==0;
124
+
124
125
stringresultString=coinResult?"Heads":"Tails";
125
-
Server.PrintToChatAll($"The player {ChatColors.Green}{player.PlayerName}{ChatColors.Default} threw the coin and the result is {ChatColors.Green}{resultString}{ChatColors.Default}.");
Server.PrintToChatAll($"Player {ChatColors.Green}{player.PlayerName}{ChatColors.Default} threw the coin and the result is {ChatColors.Green}{resultString}{ChatColors.Default}.");
0 commit comments