Added complex dice system
This commit is contained in:
@@ -12,6 +12,18 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
class UserCommands : Script
|
class UserCommands : Script
|
||||||
{
|
{
|
||||||
|
|
||||||
|
[Command("dice", "~m~Benutzung: ~s~/dice")]
|
||||||
|
public void CmdUserDice(Client player)
|
||||||
|
{
|
||||||
|
if (!player.IsLoggedIn()) return;
|
||||||
|
|
||||||
|
Random rnd = new Random();
|
||||||
|
int number = rnd.Next(1, 7);
|
||||||
|
|
||||||
|
ChatService.SendMessage(player, "* " + player.Name + " + würfelt eine " + number);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
[Command("car", "~m~Benutzung: ~s~/car")]
|
[Command("car", "~m~Benutzung: ~s~/car")]
|
||||||
public void CmdUserCar(Client player)
|
public void CmdUserCar(Client player)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user