From 500209fe9d3dd5f86ad71e28416a676e325c6102 Mon Sep 17 00:00:00 2001 From: Maik Wild Date: Sat, 23 Dec 2017 02:26:19 +0100 Subject: [PATCH] removed /detrain --- custom_commands.lua | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/custom_commands.lua b/custom_commands.lua index 97350d0f..48432426 100644 --- a/custom_commands.lua +++ b/custom_commands.lua @@ -57,20 +57,6 @@ local function teleport_location(cmd) game.player.teleport(pos) end -local function detrain(param) - if game.player and not (game.player.admin or is_mod(game.player.name)) then - cant_run(param.name) - return - end - local player_name = param["parameter"] - if player_name == nil or game.players[player_name] == nil then player_print("Unknown player.") return end - if game.players[player_name].vehicle == nil then player_print("Player not in vehicle.") return end - local vehicle_name = game.players[player_name].vehicle.name - game.players[player_name].vehicle.passenger = game.player - local player = game.player or {name = ""} - game.print(string.format("%s kicked %s off the %s. God damn!", player.name, player_name, vehicle_name)) -end - local function kill() if game.player then game.player.character.die() @@ -489,7 +475,6 @@ local function zoom(cmd) end commands.add_command("kill", "Will kill you.", kill) -commands.add_command("detrain", " - Kicks the player off a train. (Admins and moderators)", detrain) commands.add_command("tpplayer", " - Teleports you to the player. (Admins and moderators)", teleport_player) commands.add_command("invoke", " - Teleports the player to you. (Admins and moderators)", invoke) commands.add_command("tppos", "Teleports you to a selected entity. (Admins only)", teleport_location)