mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Update kill.lua
This commit is contained in:
committed by
GitHub
parent
0635ca7591
commit
deeec00241
@@ -8,7 +8,7 @@ Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('kill', 'Kills a player, must be either yourself (/kill self) or a person of a lower rank.', {'player'}, function(event,args)
|
||||
commands.add_command('kill', 'Kills a player. Must be either yourself (/kill self) or a person of a lower rank.', {'player'}, function(event,args)
|
||||
local _player = Game.get_player(event)
|
||||
local player = Game.get_player(args.player)
|
||||
if args.player ~= 'self' and not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
@@ -18,4 +18,4 @@ commands.add_command('kill', 'Kills a player, must be either yourself (/kill sel
|
||||
if player.connected then else player_return({'commands.offline-player'}) return commands.error end
|
||||
if player.character then player.character.die() else player_return({'commands.dead-player'}) return commands.error end
|
||||
else player_return({'commands.unauthorized'}) return commands.error end
|
||||
end)
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user