Fix ulx setwarp (#1)

This commit is contained in:
iViscosity 2020-12-13 02:04:42 -05:00 committed by GitHub
parent 0e118b3117
commit 256e89dc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);