From ef96d6dd0f6ace64042de217eae146513c01020e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=5BMEF=5D=20=D0=BC=D0=B5=D1=85=D1=80=D0=BE=D0=B1?= <124378025+happy1063@users.noreply.github.com> Date: Sun, 24 Nov 2024 18:33:58 +0300 Subject: [PATCH] Update tp.txt --- tp.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tp.txt b/tp.txt index a9090ef..c8e82cc 100644 --- a/tp.txt +++ b/tp.txt @@ -27,7 +27,8 @@ goto STEAM_0:0:766803141 hook.add("PlayerSay","tp",function(ply,text) if ply == owner() and string.explode(" ",text)[1] == "goto" then players = find.allPlayers() - name = string.explode(" ",text)[2] + name = string.sub(text,6) + print(name) finded = 0 for i = 1 , table.count(players) do if players[i]:isValid() and (string.find(string.lower(players[i]:getName()),string.lower(name)) or players[i]:getSteamID() == name) then @@ -42,7 +43,7 @@ goto STEAM_0:0:766803141 timer.simple(0.1,function() seat:use() seat:ejectDriver() - seat:setPos(chip():getPos()) + seat:setPos(Vector(0,0,0)) end) end return ""