#How to modify set_custom_tag function?

8 messages Ā· Page 1 of 1 (latest)

misty mortar
#

Hi bombsquad masters.

  1. So I try to set up bcs server.
  2. I want to give some players access to custom tag command so they can set a custom tag for themselves.
  3. But it can be problem. With that command, they will be able to change other player's tags too.
  4. I don't want it to happen. I want them unable to do it but to themselves.
  5. Could you help me to modify the code? Or better, could you modify it?
  6. (Maybe) below is the code to modify. I found it on line 491 on Management.py file, under mods\chatHandle\ChatCommands\commands directory.
  7. note: I have no idea what is it and how that code works.

....... (some code)

def set_custom_tag(arguments):
try:
session = ba.internal.get_foreground_host_session()
for i in session.sessionplayers:
if i.inputdevice.client_id == int(arguments[1]):
roles = pdata.set_tag(arguments[0], i.get_v1_account_id())
except:
return

....... (some code)

#

How to modify set_custom_tag function?

pure narwhal
#

You can put these codes

misty mortar
pure narwhal
#

Or i can give u some plugins

tender mirage
paper tide