mirror of
https://github.com/WillMartin03/ulx-custom-commands.git
synced 2025-03-04 03:03:14 -05:00
Fix ulx setwarp (#1)
This commit is contained in:
parent
0e118b3117
commit
256e89dc4f
@ -130,7 +130,7 @@ fteleport:help("Teleports target and freezes them.");
|
||||
local savedPos = {};
|
||||
function ulx.setwarp(calling_ply, name)
|
||||
if (!name[1]) then return; end
|
||||
savedpos[tostring(name[1])] = calling_ply:GetPos();
|
||||
savedPos[tostring(name[1])] = calling_ply:GetPos();
|
||||
for _, v in ipairs(player.GetAll()) do
|
||||
if (v:IsUserGroup("operator") || v:IsAdmin()) then
|
||||
ULib.tsayColor(v, false, Color(255, 255, 255), "A new warp location has been created: ", Color(255, 0, 0), name);
|
||||
|
Loading…
Reference in New Issue
Block a user