Skip to content

Commit 0eed790

Browse files
xLuxyqaisjp
authored andcommitted
admin2: Exclude localPlayer from "Warp to" list
1 parent b216a90 commit 0eed790

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

[admin]/admin2/client/widgets/admin_warp.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function aPlayerWarp(player)
2626
aWarpSelectPointer = player
2727
guiGridListClear(aWarpList)
2828
for id, player in ipairs(getElementsByType("player")) do
29-
guiGridListSetItemText(aWarpList, guiGridListAddRow(aWarpList), 1, getPlayerName(player), false, false)
29+
if (player ~= localPlayer) then
30+
guiGridListSetItemText(aWarpList, guiGridListAddRow(aWarpList), 1, getPlayerName(player), false, false)
31+
end
3032
end
3133
guiSetVisible(aWarpForm, true)
3234
guiBringToFront(aWarpForm)

0 commit comments

Comments
 (0)