Advertisement
NolanSyKinsley

Untitled

Oct 27th, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. bind(player_chat, null, null, @e,
  2. @worlds = array('blockhunt')
  3. @recipients = array()
  4. foreach(all_players(), @player) {
  5. if(pworld(@player) == pworld(@e['player'])) {
  6. @curRegions = sk_current_regions(@e['player'])
  7. if(array_contains_ic(@worlds, pworld(@e['player'])) {
  8. foreach(@curRegions, @region) {
  9. if(array_contains_ic(sk_current_regions(@player), @region)) {
  10. if(!array_contains_ic(@recipients, @player)) {
  11. array_push(@recipients, @player)
  12. }
  13. }
  14. }
  15. else { array_push(@recipients, @player) }
  16. }
  17. }
  18. modify_event('recipients', @recipients)
  19. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement