Added error message to /gotomark if no mark is set
This commit is contained in:
@@ -1136,7 +1136,6 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[Command("spec", "~m~Benutzung: ~s~/spec [Player]")]
|
[Command("spec", "~m~Benutzung: ~s~/spec [Player]")]
|
||||||
public void CmdAdminSpectate(Client player, string name)
|
public void CmdAdminSpectate(Client player, string name)
|
||||||
{
|
{
|
||||||
@@ -1232,6 +1231,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("setmoney")]
|
[Command("setmoney")]
|
||||||
public void SetPlayerMoney(Client player, string receiver, float amount)
|
public void SetPlayerMoney(Client player, string receiver, float amount)
|
||||||
{
|
{
|
||||||
@@ -1243,6 +1243,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
Client target = ClientService.GetClientByName(receiver);
|
Client target = ClientService.GetClientByName(receiver);
|
||||||
target.SetSharedData("money", amount);
|
target.SetSharedData("money", amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO
|
//TODO
|
||||||
[Command("fpay")]
|
[Command("fpay")]
|
||||||
public void FPay(Client player, string receiver, float amount)
|
public void FPay(Client player, string receiver, float amount)
|
||||||
@@ -1258,6 +1259,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
BankManager.TransferUserMoneyToFaction(player.GetUser(), receiverUser, amount, "/FPAY");
|
BankManager.TransferUserMoneyToFaction(player.GetUser(), receiverUser, amount, "/FPAY");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO Ausführen bei Tastendruck wenn in Fahrzeug.
|
//TODO Ausführen bei Tastendruck wenn in Fahrzeug.
|
||||||
[Command("buyv")]
|
[Command("buyv")]
|
||||||
public void BuyShopVehicle(Client player)
|
public void BuyShopVehicle(Client player)
|
||||||
@@ -1287,6 +1289,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO Als Browser anzeigeN??
|
//TODO Als Browser anzeigeN??
|
||||||
[Command("gotolist")]
|
[Command("gotolist")]
|
||||||
public void CmdAdminGotoList(Client player)
|
public void CmdAdminGotoList(Client player)
|
||||||
@@ -1306,6 +1309,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
}
|
}
|
||||||
player.SendChatMessage(gotoString);
|
player.SendChatMessage(gotoString);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("mark")]
|
[Command("mark")]
|
||||||
public void CmdAdminMark(Client player)
|
public void CmdAdminMark(Client player)
|
||||||
{
|
{
|
||||||
@@ -1317,6 +1321,7 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
player.SetData("mark", player.Position);
|
player.SetData("mark", player.Position);
|
||||||
player.SendNotification("~y~Mark ~s~gespeichert", true);
|
player.SendNotification("~y~Mark ~s~gespeichert", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("gotomark")]
|
[Command("gotomark")]
|
||||||
public void CmdAdminGotoMark(Client player)
|
public void CmdAdminGotoMark(Client player)
|
||||||
{
|
{
|
||||||
@@ -1325,8 +1330,16 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
ChatService.NotAuthorized(player);
|
ChatService.NotAuthorized(player);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(!player.HasData("mark"))
|
||||||
|
{
|
||||||
|
player.SendChatMessage("~r~[FEHLER]~s~ Du hast noch keine Markierung gesetzt. ~m~(/mark)");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
player.Position = player.GetData("mark");
|
player.Position = player.GetData("mark");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("saveall")]
|
[Command("saveall")]
|
||||||
public void SaveAll(Client player)
|
public void SaveAll(Client player)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user