Hi bombsquad masters.
- So I try to set up bcs server.
- I want to give some players access to custom tag command so they can set a custom tag for themselves.
- But it can be problem. With that command, they will be able to change other player's tags too.
- I don't want it to happen. I want them unable to do it but to themselves.
- Could you help me to modify the code? Or better, could you modify it?
- (Maybe) below is the code to modify. I found it on line 491 on Management.py file, under mods\chatHandle\ChatCommands\commands directory.
- 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)