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:
@@ -50,13 +50,13 @@ namespace ReallifeGamemode.Server.Managers
|
||||
return Businesses.Find(b => b.Id == id);
|
||||
}
|
||||
|
||||
public static BusinessBase GetNearBusiness(Client player)
|
||||
public static BusinessBase GetNearBusiness(Player player)
|
||||
{
|
||||
return Businesses.Where(b => b.Position.DistanceTo(player.Position) < 5f).FirstOrDefault();
|
||||
}
|
||||
|
||||
[RemoteEvent("Business_DepositMoney")]
|
||||
public void BusinessDepositMoney(Client player, int amount)
|
||||
public void BusinessDepositMoney(Player player, int amount)
|
||||
{
|
||||
User user = player.GetUser();
|
||||
if (user == null)
|
||||
@@ -80,14 +80,14 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
else if (result == TransactionResult.SUCCESS)
|
||||
{
|
||||
playerBusiness.SendBusinessDataToClient(player);
|
||||
playerBusiness.SendBusinessDataToPlayer(player);
|
||||
player.SendNotification("~g~Du hast erfolgreich ~s~" + amount.ToMoneyString() + " ~g~ überwiesen");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
[RemoteEvent("Business_WithdrawMoney")]
|
||||
public void BusinessWithdrawMoney(Client player, int amount)
|
||||
public void BusinessWithdrawMoney(Player player, int amount)
|
||||
{
|
||||
User user = player.GetUser();
|
||||
if (user == null)
|
||||
@@ -111,14 +111,14 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
else if (result == TransactionResult.SUCCESS)
|
||||
{
|
||||
playerBusiness.SendBusinessDataToClient(player);
|
||||
playerBusiness.SendBusinessDataToPlayer(player);
|
||||
player.SendNotification("~g~Du hast erfolgreich ~s~" + amount.ToMoneyString() + " ~g~ überwiesen");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
[ServerEvent(Event.PlayerEnterVehicle)]
|
||||
public void CarDealerBusiness_PlayerEnterVehicle(Client player, Vehicle veh, int seat)
|
||||
public void CarDealerBusiness_PlayerEnterVehicle(Player player, Vehicle veh, int seat)
|
||||
{
|
||||
ServerVehicle sVeh = veh.GetServerVehicle();
|
||||
if (sVeh == null) return;
|
||||
@@ -137,7 +137,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
|
||||
[RemoteEvent("VehShop_BuyVehicle")]
|
||||
public void CarDealerBusiness_BuyVehicle(Client player, string target)
|
||||
public void CarDealerBusiness_BuyVehicle(Player player, string target)
|
||||
{
|
||||
ServerVehicle sVeh = player.Vehicle?.GetServerVehicle();
|
||||
if (sVeh == null) return;
|
||||
@@ -217,7 +217,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
|
||||
[RemoteEvent("CLIENT:Business_BuyBusiness")]
|
||||
public void BusinessEventBuyBusiness(Client player)
|
||||
public void BusinessEventBuyBusiness(Player player)
|
||||
{
|
||||
BusinessBase business = GetNearBusiness(player);
|
||||
if (business == null) return;
|
||||
@@ -258,7 +258,7 @@ namespace ReallifeGamemode.Server.Managers
|
||||
}
|
||||
|
||||
[RemoteEvent("CLIENT:Business_SellBusiness")]
|
||||
public void BusinessEventSellBusiness(Client player)
|
||||
public void BusinessEventSellBusiness(Player player)
|
||||
{
|
||||
BusinessBase business = GetNearBusiness(player);
|
||||
if (business == null) return;
|
||||
|
||||
Reference in New Issue
Block a user