Example #1
0
 def swat_player(self, user, target):
     message("%s called the SWAT team on %s." % (
         user.handle,
         target.handle,
     ))
     evt_id = Notifier.broadcast_warning("Player Arrested!", message)
     self.push_broadcast_notification(evt_id)
Example #2
0
 def create_swat_player_event(self, user, target):
     message("%s called the SWAT team on %s." % (
         user.handle,
         target.handle,
     ))
     evt_id = Notifier.broadcast_warning("Player Arrested!", message)
     return (self.push_broadcast_notification, {'event_uuid': evt_id})
Example #3
0
 def create_purchased_item_event(self, user, item):
     """ Callback when a team purchases an item """
     self.refresh_scoreboard()
     message = "%s purchased %s from the black market." % (user.handle, item.name)
     evt_id = Notifier.team_success(user.team, "Upgrade Purchased", message)
     self.push_broadcast_notification(evt_id)
     message2 = "%s unlocked %s." % (user.team.name, item.name)
     evt_id2 = Notifier.broadcast_warning("Team Upgrade", message2)
     return (self.push_broadcast_notification, {"event_uuid": evt_id2})
Example #4
0
 def purchased_item(self, user, item):
     ''' Callback when a team purchases an item '''
     self.refresh_scoreboard()
     message = "%s purchased %s from the black market." % (
         user.handle, item.name,
     )
     evt_id = Notifier.team_success(user.team, "Upgrade Purchased", message)
     self.push_broadcast_notification(evt_id)
     message2 = "%s unlocked %s." % (user.team.name, item.name,)
     evt_id2 = Notifier.broadcast_warning("Team Upgrade", message2)
     self.push_broadcast_notification(evt_id2)
Example #5
0
 def create_purchased_item_event(self, user, item):
     ''' Callback when a team purchases an item '''
     self.refresh_scoreboard()
     message = "%s purchased %s from the black market." % (
         user.handle,
         item.name,
     )
     evt_id = Notifier.team_success(user.team, "Upgrade Purchased", message)
     self.push_broadcast_notification(evt_id)
     message2 = "%s unlocked %s." % (
         user.team.name,
         item.name,
     )
     evt_id2 = Notifier.broadcast_warning("Team Upgrade", message2)
     return (self.push_broadcast_notification, {'event_uuid': evt_id2})
Example #6
0
 def swat_player(self, user, target):
     message("%s called the SWAT team on %s." % (user.handle, target.handle,))
     evt_id = Notifier.broadcast_warning("Player Arrested!", message)
     self.push_broadcast_notification(evt_id)
Example #7
0
 def create_swat_player_event(self, user, target):
     message("%s called the SWAT team on %s." % (user.handle, target.handle,))
     evt_id = Notifier.broadcast_warning("Player Arrested!", message)
     return (self.push_broadcast_notification, {'event_uuid': evt_id})