[+] Weapon-Deal System
This commit is contained in:
@@ -44,12 +44,10 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
WeaponDealPoints.factionWeaponDeal[user.FactionId.Value] = -1;
|
||||
user.Faction.WeaponDealTime = 60;
|
||||
context.SaveChanges();
|
||||
return;
|
||||
}
|
||||
else
|
||||
{
|
||||
ChatService.ErrorMessage(client, "Du kannst noch kein Waffendeal starten");
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -69,7 +67,7 @@ namespace ReallifeGamemode.Server.WeaponDeal
|
||||
fVeh.SetData("WeaponDealLoad", true);
|
||||
InventoryManager.RemoveAllItemsfromVehicleInventory(fVeh);
|
||||
Random rnd = new Random();
|
||||
if(factionVehicle.Id == 8 || factionVehicle.Id == 7)
|
||||
if(factionVehicle.FactionId == 8 || factionVehicle.FactionId == 7)
|
||||
{
|
||||
VehicleItem item = new VehicleItem() { ItemId = 11, VehicleId = factionVehicle.Id, Amount = rnd.Next(45, 100) }; //pistole
|
||||
InventoryManager.AddItemToVehicleInventory(client, item, fVeh);
|
||||
|
||||
Reference in New Issue
Block a user