rentcar blips und sowas halt
This commit is contained in:
@@ -13,7 +13,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
class Rentcar : Script
|
||||
{
|
||||
//In Sekunden
|
||||
public static int PAY_TIMER = 300;
|
||||
public static int PAY_TIMER = 30;
|
||||
|
||||
//In Stunden
|
||||
private static int PAYTIME_FREE = 30;
|
||||
@@ -58,7 +58,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
|
||||
player.SetData("hasRentcar", false);
|
||||
player.TriggerEvent("abortRentcarTimer");
|
||||
player.SendChatMessage("Fahrzeugmiete erfolgreich gekündigt. Kosten: ~g~" + mapPlayerRentcarBill[player.Name].Item2 + "$");
|
||||
player.SendChatMessage("Fahrzeugmiete erfolgreich gekündigt. Kosten: ~g~$" + mapPlayerRentcarBill[player.Name].Item2);
|
||||
VehicleManager.DeleteVehicle(mapPlayerRentcarBill[player.Name].Item1);
|
||||
Rentcar.mapPlayerRentcarBill.Remove(player.Name);
|
||||
}
|
||||
@@ -90,7 +90,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
return;
|
||||
}
|
||||
|
||||
player.TriggerEvent("BN_Show", "Fahrzeug seit ~b~" + time + "~w~ Sekunden gemietet. Gesamtkosten: ~g~" + bill + "$");
|
||||
player.TriggerEvent("BN_Show", "Fahrzeug seit ~b~" + time + "~w~ Sekunden gemietet. Gesamtkosten: ~g~$" + bill);
|
||||
mapPlayerRentcarBill[player.Name] = (mapPlayerRentcarBill[player.Name].Item1, bill);
|
||||
}
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace ReallifeGamemode.Server.Util
|
||||
{
|
||||
if (player.GetData<bool>("hasRentcar") == true)
|
||||
{
|
||||
ChatService.ErrorMessage(player, "Du hast bereits ein Fahrzeug gemeietet");
|
||||
ChatService.ErrorMessage(player, "Du hast bereits ein Fahrzeug gemietet. Mit '/rent stop' kündigst du die Miete");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user