Advertisement
OneTallor

Untitled

Jun 28th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.78 KB | None | 0 0
  1. function SendMessageToTeam(theTeam, uzenet, r, g, b)
  2. if not r then r = 255 end
  3. if not g then g = 255 end
  4. if not b then b = 255 end
  5. local CsapatID = getTeamFromName( tostring(theTeam) )
  6. if ( CsapatID ) then
  7. local teamPlayers = getPlayersInTeam( CsapatID )
  8. for k, v in ipairs(teamPlayers) do
  9. outputChatBox(uzenet, v, r, g, b)
  10. end
  11. return true
  12. else
  13. return false
  14. end
  15. end
  16.  
  17. function FrakcioUzenet(theTeam, uzenet, r, g, b)
  18. if not r then r = 255 end
  19. if not g then g = 255 end
  20. if not b then b = 255 end
  21. local CsapatID = getTeamFromName( tostring(theTeam) )
  22. if ( CsapatID ) then
  23. local teamPlayers = getPlayersInTeam( CsapatID )
  24. for k, v in ipairs(teamPlayers) do
  25. outputChatBox(uzenet, v, r, g, b)
  26. end
  27. return true
  28. else
  29. return false
  30. end
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement