daily pastebin goal
0%
SHARE
TWEET

Untitled

Sarrum Jul 13th, 2015 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local redirectedPlayers = { }
  2. local _redirectPlayer = redirectPlayer
  3.  
  4. function redirectPlayer ( thePlayer, serverIP, serverPort, serverPassword )
  5.         redirectedPlayers [ thePlayer ] = serverIP .. ":" .. serverPort
  6.         return _redirectPlayer ( thePlayer, serverIP, serverPort, serverPassword )
  7. end
  8.  
  9. addEventHandler ( "onPlayerQuit", root,
  10.         function ( quitType )
  11.                 if redirectedPlayers [ source ] then
  12.                         quitType = "Redirected to " .. redirectedPlayers [ source ]
  13.                         redirectedPlayers [ source ] = nil
  14.                 end
  15.                 outputChatBox ( getPlayerName ( source ) .. " has left the server (" .. quitType .. ")" )
  16.         end
  17. )
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top