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
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Text.RegularExpressions;
|
||||
using GTANetworkAPI;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using ReallifeGamemode.Server.Services;
|
||||
|
||||
@@ -41,7 +41,8 @@ namespace ReallifeGamemode.Server.Commands
|
||||
if (player.IsInVehicle)
|
||||
{
|
||||
pVeh = player.Vehicle;
|
||||
} else
|
||||
}
|
||||
else
|
||||
{
|
||||
pVeh = NAPI.Pools.GetAllVehicles().Where(v => v.Position.DistanceTo(player.Position) <= 5).FirstOrDefault();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user