def cmd_pakill(self, data, client, cmd=None):
"""\
<name> <reason> - kill a player
"""
m = self.parseUserCmd(data)
if not m:
client.message('Invalid data, try !help pakill')
else:
cid, keyword = m
reason = self._adminPlugin.getReason(keyword)
if not reason and client.maxLevel < self._adminPlugin.config.getint('settings', 'noreason_level'):
client.message('ERROR: You must supply a reason')
else:
sclient = self._adminPlugin.findClientPrompt(cid, client)
if sclient:
self.console.saybig('%s was terminated by server admin' % sclient.name)
try:
self.console.write(('admin.killPlayer', sclient.cid))
if reason:
self.console.say('%s was terminated by server admin for : %s' % (sclient.name, reason))
except Bfbc2CommandFailedError, err:
client.message('Error, server replied %s' % err)
plz CHANGE
1. Can I change here that showed who was used by the command? And not by the "server admin"
2. pakill shows the message,
-self.console.saybig(change only say not bigsay)('%s was terminated by server admin' % sclient.name) --Shows up only for the player
-self.console.say('%s was terminated by server admin for : %s' % (sclient.name, reason)) -- Shows for all
If not understandable, sorry for my english