10 killer = Crossfire.WhoIsActivator()
17 if killer.Type != Crossfire.Type.PLAYER
or killer.DungeonMaster:
20 dict = Crossfire.GetSharedDictionary()
21 if not 'autojail' in dict
or dict[
'autojail'] != 1:
24 victim = Crossfire.WhoAmI()
25 killer.Message(
'You are auto-jailed for PKing %s'%victim.Name)
28 msg =
'%s was auto-jailed for PKing %s'%(killer.Name, victim.Name)
30 msg =
'Failed to auto-jail %s for PKing %s, code %d'%(killer.Name, victim.Name, ret)
31 players = Crossfire.GetPlayers()
32 for player
in players:
33 if player.DungeonMaster: