mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-29 12:16:37 +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-----------------------------------------------------------
|
--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(event)
|
||||||
local player = Game.get_player(args.player)
|
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
|
if args.player ~= 'self' and not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||||
|
|||||||
Reference in New Issue
Block a user