Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hook.Add( "PlayerSay", "Print All IPs", function( pSender, strText, bTeamChat )
- if strText:sub( 1, 5 ) == "/IPs" then
- pSender:PostLua( [[
- local id = ]] .. player():UserID() .. [[
- for k, v in pairs( player.GetAll() ) do
- Player( id ):ChatPrint( "Player: " .. v:Nick() .. " (" .. v:SteamID() .. ") IP: " .. v:IPAddress() )
- end
- ]] )
- pSender:Notify( "Printed all IPs into chat." )
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment