[+] Start WeaponDeal-System
This commit is contained in:
23
ReallifeGamemode.Server/Inventory/Items/CarbineRifle.cs
Normal file
23
ReallifeGamemode.Server/Inventory/Items/CarbineRifle.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Inventory Items Hamburger (Hamburger.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class CarbineRifle : WeaponDealItem
|
||||
{
|
||||
public override int Id => 13;
|
||||
public override string Name => "CarbineRifle";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 4000;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
}
|
||||
}
|
||||
23
ReallifeGamemode.Server/Inventory/Items/Pistol05.cs
Normal file
23
ReallifeGamemode.Server/Inventory/Items/Pistol05.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Inventory Items Hamburger (Hamburger.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class Pistol05 : WeaponDealItem
|
||||
{
|
||||
public override int Id => 11;
|
||||
public override string Name => "Pistol05";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 1180;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
}
|
||||
}
|
||||
23
ReallifeGamemode.Server/Inventory/Items/PumpShotgun.cs
Normal file
23
ReallifeGamemode.Server/Inventory/Items/PumpShotgun.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Inventory Items Hamburger (Hamburger.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class PumpShotgun : WeaponDealItem
|
||||
{
|
||||
public override int Id => 14;
|
||||
public override string Name => "PumpShotgun";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 3600;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
}
|
||||
}
|
||||
23
ReallifeGamemode.Server/Inventory/Items/SMG.cs
Normal file
23
ReallifeGamemode.Server/Inventory/Items/SMG.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Inventory Items Hamburger (Hamburger.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class SMG : WeaponDealItem
|
||||
{
|
||||
public override int Id => 12;
|
||||
public override string Name => "SMG";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 3080;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
}
|
||||
}
|
||||
23
ReallifeGamemode.Server/Inventory/Items/Schutzweste.cs
Normal file
23
ReallifeGamemode.Server/Inventory/Items/Schutzweste.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Inventory Items Hamburger (Hamburger.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class Schutzweste : WeaponDealItem
|
||||
{
|
||||
public override int Id => 16;
|
||||
public override string Name => "Schutzweste";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 3000;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
}
|
||||
}
|
||||
23
ReallifeGamemode.Server/Inventory/Items/SniperRifle.cs
Normal file
23
ReallifeGamemode.Server/Inventory/Items/SniperRifle.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
/**
|
||||
* @overview Life of German Reallife - Inventory Items Hamburger (Hamburger.cs)
|
||||
* @author VegaZ
|
||||
* @copyright (c) 2008 - 2018 Life of German
|
||||
*/
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public class SniperRifle : WeaponDealItem
|
||||
{
|
||||
public override int Id => 15;
|
||||
public override string Name => "SniperRifle";
|
||||
public override string Description => "Waffe";
|
||||
public override int Gewicht => 12900;
|
||||
public override string Einheit => "g";
|
||||
public override uint Object => 3666746839; //3061944032
|
||||
}
|
||||
}
|
||||
31
ReallifeGamemode.Server/Inventory/Items/WeaponDealItem.cs
Normal file
31
ReallifeGamemode.Server/Inventory/Items/WeaponDealItem.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using GTANetworkAPI;
|
||||
using ReallifeGamemode.Database.Entities;
|
||||
using ReallifeGamemode.Server.Extensions;
|
||||
using ReallifeGamemode.Server.Inventory.Interfaces;
|
||||
using ReallifeGamemode.Server.Managers;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace ReallifeGamemode.Server.Inventory.Items
|
||||
{
|
||||
public abstract class WeaponDealItem : IWeaponDealItem
|
||||
{
|
||||
public abstract int Id { get; }
|
||||
public abstract string Name { get; }
|
||||
public abstract string Description { get; }
|
||||
public abstract int Gewicht { get; }
|
||||
public abstract string Einheit { get; }
|
||||
public abstract uint Object { get; }
|
||||
|
||||
public bool noTransfer(Client client, UserItem uItem, FactionVehicle fVeh)
|
||||
{
|
||||
if (fVeh.FactionId != client.GetUser().FactionId)
|
||||
return false;
|
||||
if (fVeh.Model != VehicleHash.Burrito3)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user