code formatiert
This commit is contained in:
@@ -467,6 +467,25 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
}
|
||||
|
||||
[Command("bitcoin", "~m~/bitcoin [ID]")]
|
||||
public void CmdAdminBitcoin(Player player, string name)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
|
||||
Player target = PlayerService.GetPlayerByNameOrId(name);
|
||||
if (target == null || !target.IsLoggedIn())
|
||||
{
|
||||
ChatService.PlayerNotFound(player);
|
||||
return;
|
||||
}
|
||||
|
||||
target.TriggerEvent("CLIENT:PlaySound", "fun/bitcoinnect", "mp3", 50);
|
||||
}
|
||||
|
||||
#endregion Support
|
||||
|
||||
#region ALevel1
|
||||
|
||||
Reference in New Issue
Block a user