Guest User

Untitled

a guest
Aug 28th, 2012
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. local poisonTeam = getTeamFromName ( "Poison" )
  2. local ninjaTeam = getTeamFromName ( "Ninja" )
  3. local poisonPlayers = getPlayersInTeam ( poisonTeam )
  4. local ninjaPlayers = getPlayersInTeam ( ninjaTeam )
  5.  
  6. function Winning()
  7.     alivePlayers = getAlivePlayers ()
  8.     if alivePlayers == poisonPlayers then
  9.         outPutChatBox("Poison Team won the round!", 255, 25, 0)
  10.     elseif alivePlayers == ninjaPlayers then
  11.         outPutChatBox("Ninja Team won the round!", 255, 25, 0)
  12.     elseif alivePlayers == nil then
  13.         outPutChatBox("#00ff00[#ffffffThe round was a tie!#00ff00]", 255, 255, 255, true)
  14.     end
  15. end
  16. addEventHandler("onPlayerWasted",root, Winning)
Advertisement
Add Comment
Please, Sign In to add comment