thank you and how to do a window like falloffbike? immediately for the falloffbike.
and i put it this to fr_client so:
---------------------------
-- Warp toggle
-------------------------
function warpTo(leaf)
if not leaf then
leaf = getSelectedGridListLeaf(wndWarp, 'playerlist')
if not leaf then
return
end
end
local player = getPlayerFromNick(leaf.name)
if player then
if getElementData(player,"warp.status") then outputChatBox ( "This player has disabled warping.", player, 255, 0, 0 ) return end -- added
server.warpMe(player)
end
closeWindow(wndWarp)
end
function warpToCommand(cmd, player)
if player then
player = getPlayerFromNick(player)
if player then
if getElementData(player,"warp.status") then outputChatBox ( "This player has disabled warping.", player, 255, 0, 0 ) return end --added
server.warpMe(player)
end
else
createWindow(wndWarp)
showCursor(true)
end
end
addCommandHandler('warpto', warpToCommand)
addCommandHandler('wt', warpToCommand)