add adminCMD /anim & add UserCMD /hub
This commit is contained in:
@@ -34,6 +34,20 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
{
|
{
|
||||||
#region Todo
|
#region Todo
|
||||||
|
|
||||||
|
[Command("anim", "~m~Benutzung: ~s~/anim [animDict] [animName]")]
|
||||||
|
public void CmdAnim(Player player, string animDict, string animName)
|
||||||
|
{
|
||||||
|
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||||
|
{
|
||||||
|
ChatService.NotAuthorized(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
player.PlayAnimation(animDict, animName, (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl | AnimationFlags.Cancellable));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[Command("eat", "~m~Benutzung: ~s~/eat [Item]")]
|
[Command("eat", "~m~Benutzung: ~s~/eat [Item]")]
|
||||||
public void CmdAdminEat(Player player, string item)
|
public void CmdAdminEat(Player player, string item)
|
||||||
{
|
{
|
||||||
@@ -208,7 +222,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
|
|
||||||
#region Support
|
#region Support
|
||||||
|
|
||||||
[Command("tog", "~m~Benutzung: ~s~/tog [Typ = ~g~ip~s~, ~g~deathlogs~s~,~g~lc~s~", GreedyArg = true)]
|
[Command("tog", "~m~Benutzung: ~s~/tog [Typ = ~g~ip~s~, ~g~deathlogs~s~, ~g~lc~s~", GreedyArg = true)]
|
||||||
public void CmdTog(Player player, string typ, string option1 = null, string option2 = null)
|
public void CmdTog(Player player, string typ, string option1 = null, string option2 = null)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||||
|
|||||||
@@ -189,7 +189,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
|
|
||||||
NAPI.Pools.GetAllPlayers().ForEach(p =>
|
NAPI.Pools.GetAllPlayers().ForEach(p =>
|
||||||
{
|
{
|
||||||
if (p.GetUser()?.FactionLeader ?? false || player.HasData("toglc")) ChatService.SendMessage(p, broadcastMsg);
|
if (p.GetUser()?.FactionLeader ?? false) ChatService.SendMessage(p, broadcastMsg);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -81,6 +81,17 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
{
|
{
|
||||||
player.TriggerEvent("showUserhelp");
|
player.TriggerEvent("showUserhelp");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Command("hub")]
|
||||||
|
public void CmdAnim(Player player)
|
||||||
|
{
|
||||||
|
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||||
|
{
|
||||||
|
ChatService.NotAuthorized(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
player.PlayAnimation("mp_am_hold_up", "handsup_base", (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl | AnimationFlags.Cancellable));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 1;
|
public override int Id => 1;
|
||||||
public override string Name => "Pistol";
|
public override string Name => "Pistol";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 1180;
|
public override int Gewicht => 250;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 2;
|
public override int Id => 2;
|
||||||
public override string Name => "Pistol50";
|
public override string Name => "Pistol50";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 1180;
|
public override int Gewicht => 250;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 3;
|
public override int Id => 3;
|
||||||
public override string Name => "Pistol_MK2";
|
public override string Name => "Pistol_MK2";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 1180;
|
public override int Gewicht => 250;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 9;
|
public override int Id => 9;
|
||||||
public override string Name => "PumpShotgun";
|
public override string Name => "PumpShotgun";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 3600;
|
public override int Gewicht => 500;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 5;
|
public override int Id => 5;
|
||||||
public override string Name => "SMG";
|
public override string Name => "SMG";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 3080;
|
public override int Gewicht => 250;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 10;
|
public override int Id => 10;
|
||||||
public override string Name => "Schutzweste";
|
public override string Name => "Schutzweste";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 3000;
|
public override int Gewicht => 500;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 8;
|
public override int Id => 8;
|
||||||
public override string Name => "SniperRifle";
|
public override string Name => "SniperRifle";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 12900;
|
public override int Gewicht => 500;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
|||||||
public override int Id => 11;
|
public override int Id => 11;
|
||||||
public override string Name => "Stungun";
|
public override string Name => "Stungun";
|
||||||
public override string Description => "Waffe";
|
public override string Description => "Waffe";
|
||||||
public override int Gewicht => 1180;
|
public override int Gewicht => 250;
|
||||||
public override string Einheit => "g";
|
public override string Einheit => "g";
|
||||||
public override uint Object => 3666746839; //3061944032
|
public override uint Object => 3666746839; //3061944032
|
||||||
public override int Price => 0;
|
public override int Price => 0;
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
|||||||
public class WeaponDealManager : Script
|
public class WeaponDealManager : Script
|
||||||
{
|
{
|
||||||
private const int WEAPON_AMOUNT_GANG = 2;
|
private const int WEAPON_AMOUNT_GANG = 2;
|
||||||
private const int WEAPON_AMOUNT_COP = 5;
|
private const int WEAPON_AMOUNT_COP = 8;
|
||||||
private const int WEAPON_AMOUNT_COP_STUNGUN = 2;
|
private const int WEAPON_AMOUNT_COP_STUNGUN = 2;
|
||||||
public static bool checkWeaponDbyVehicle(Vehicle vehicle)
|
public static bool checkWeaponDbyVehicle(Vehicle vehicle)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user