fixed commands up and dn
This commit is contained in:
@@ -705,23 +705,18 @@ namespace reallife_gamemode.Server.Commands
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
|
||||
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y, player.Position.Z + value);
|
||||
player.Position = playerPosition;
|
||||
player.Vehicle.Position = new Vector3(player.Vehicle.Position.X, player.Vehicle.Position.Y, player.Vehicle.Position.Z + value);
|
||||
}
|
||||
|
||||
[Command("dn", "~m~Benutzung: ~s~/dn [Wert]")]
|
||||
public void CmdAdminDn(Client player, int value = 5)
|
||||
{
|
||||
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN) ?? true)
|
||||
{
|
||||
ChatService.NotAuthorized(player);
|
||||
return;
|
||||
}
|
||||
|
||||
Vector3 playerPosition = new Vector3(player.Position.X, player.Position.Y, player.Position.Z - value);
|
||||
player.Position = playerPosition;
|
||||
player.Vehicle.Position = new Vector3(player.Vehicle.Position.X, player.Vehicle.Position.Y, player.Vehicle.Position.Z - value);
|
||||
}
|
||||
|
||||
[Command("rt", "~m~Benutzung: ~s~/rt [Wert]")]
|
||||
@@ -808,7 +803,6 @@ namespace reallife_gamemode.Server.Commands
|
||||
return;
|
||||
}
|
||||
player.SendChatMessage("IP von " + NAPI.Player.GetPlayerName(target) + ": " + target.Address);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user