mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-30 04:21:41 +09:00
Added Modules to be converted
This commit is contained in:
31
to convert/Addons/Commands/tp.lua
Normal file
31
to convert/Addons/Commands/tp.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
--[[
|
||||
Explosive Gaming
|
||||
|
||||
This file can be used with permission but this and the credit below must remain in the file.
|
||||
Contact a member of management on our discord to seek permission to use our code.
|
||||
Any changes that you may make to the code are yours but that does not make the script yours.
|
||||
Discord: https://discord.gg/r6dC2uK
|
||||
]]
|
||||
--Please Only Edit Below This Line-----------------------------------------------------------
|
||||
|
||||
commands.add_command('go-to', 'Go to a player\'s location', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.go_to(player,event)
|
||||
end)
|
||||
|
||||
commands.add_command('bring', 'Bring a player to your location', {'player'}, function(event,args)
|
||||
local player = Game.get_player(args.player)
|
||||
if not player then player_return({'commands.invalid-player',args.player}) return commands.error end
|
||||
Admin.bring(player,event)
|
||||
end)
|
||||
|
||||
commands.add_command('tp', 'Teleport a player to another player\'s location', {'from', 'to'}, function(event,args)
|
||||
local from_player = Game.get_player(args.from)
|
||||
if not from_player then player_return({'commands.invalid-player',args.from_player}) return commands.error end
|
||||
|
||||
local to_player = Game.get_player(args.to)
|
||||
if not to_player then player_return({'commands.invalid-player',args.to_player}) return commands.error end
|
||||
|
||||
Admin.tp(from_player, to_player)
|
||||
end)
|
||||
Reference in New Issue
Block a user