Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local poisonTeam = getTeamFromName ( "Poison" )
- local ninjaTeam = getTeamFromName ( "Ninja" )
- local poisonPlayers = getPlayersInTeam ( poisonTeam )
- local ninjaPlayers = getPlayersInTeam ( ninjaTeam )
- function Winning()
- alivePlayers = getAlivePlayers ()
- if alivePlayers == poisonPlayers then
- outPutChatBox("Poison Team won the round!", 255, 25, 0)
- elseif alivePlayers == ninjaPlayers then
- outPutChatBox("Ninja Team won the round!", 255, 25, 0)
- elseif alivePlayers == nil then
- outPutChatBox("#00ff00[#ffffffThe round was a tie!#00ff00]", 255, 255, 255, true)
- end
- end
- addEventHandler("onPlayerWasted",root, Winning)
Advertisement
Add Comment
Please, Sign In to add comment