RAGE Multiplayer 1.1.0-DP Update
/freeze was obselete and removed /unfreeze was obselete and removed /spectate was obselete and removed
This commit is contained in:
@@ -26,7 +26,7 @@ namespace ReallifeGamemode.Server.Inventory
|
||||
GroundTextLabels.Add(grndTextLabel);
|
||||
}
|
||||
|
||||
public static void PickUpGroundItem(Client player)
|
||||
public static void PickUpGroundItem(Player player)
|
||||
{
|
||||
GroundItem nearest = GroundItems.FirstOrDefault(d => d.Position.DistanceTo(player.Position) <= 1.2);
|
||||
if (nearest != null)
|
||||
|
||||
@@ -8,6 +8,6 @@ namespace ReallifeGamemode.Server.Inventory.Interfaces
|
||||
{
|
||||
public interface IWeaponDealItem : IItem, IDroppableItem
|
||||
{
|
||||
bool noTransfer(Client client, UserItem uItem, FactionVehicle fVeh);
|
||||
bool noTransfer(Player client, UserItem uItem, FactionVehicle fVeh);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
public abstract uint Object { get; }
|
||||
public abstract int Price { get; }
|
||||
|
||||
public void Drop(UserItem uItem, Client player, int amount)
|
||||
public void Drop(UserItem uItem, Player player, int amount)
|
||||
{
|
||||
player.SendNotification("Du hast ~g~" + amount + " ~y~" + InventoryManager.GetItemById(uItem.ItemId).Name + " ~s~weggeworfen.", false);
|
||||
InventoryManager.RemoveUserItem(player.GetUser(), uItem, amount);
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
|
||||
public void Use(UserItem uItem)
|
||||
{
|
||||
Client player = uItem.GetUser().Client;
|
||||
Player player = uItem.GetUser().Player;
|
||||
|
||||
int amountToAdd = HpAmount;
|
||||
if (player.Health + amountToAdd > 100)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace ReallifeGamemode.Server.Inventory.Items
|
||||
public abstract uint Object { get; }
|
||||
public abstract int Price { get; }
|
||||
|
||||
public bool noTransfer(Client client, UserItem uItem, FactionVehicle fVeh)
|
||||
public bool noTransfer(Player client, UserItem uItem, FactionVehicle fVeh)
|
||||
{
|
||||
if (fVeh.FactionId != client.GetUser().FactionId)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user