mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 20:41:41 +09:00
.
This commit is contained in:
@@ -22,8 +22,10 @@ Commands.new("kill", { "exp-commands_kill.description" })
|
|||||||
return Commands.status.error{ "exp-commands_kill.already-dead" }
|
return Commands.status.error{ "exp-commands_kill.already-dead" }
|
||||||
elseif (other_player == player) or (highest_role(other_player).index < highest_role(player).index) then
|
elseif (other_player == player) or (highest_role(other_player).index < highest_role(player).index) then
|
||||||
-- You can always kill yourself or can kill lower role players
|
-- You can always kill yourself or can kill lower role players
|
||||||
local pos = other_player.position
|
if script.active_mods["space-age"] then
|
||||||
other_player.surface.create_entity{ name = "lightning", position = { pos.x, pos.y - 16 }, target = other_player.character }
|
local pos = other_player.position
|
||||||
|
other_player.surface.create_entity{ name = "lightning", position = { pos.x, pos.y - 16 }, target = other_player.character }
|
||||||
|
end
|
||||||
other_player.character.die()
|
other_player.character.die()
|
||||||
else
|
else
|
||||||
return Commands.status.unauthorised{ "exp-commands_kill.lower-role" }
|
return Commands.status.unauthorised{ "exp-commands_kill.lower-role" }
|
||||||
|
|||||||
Reference in New Issue
Block a user