mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2025-11-07 17:36:08 +00:00
Update NewCmds.py
This commit is contained in:
parent
c76bb82c73
commit
9a16ed8bce
1 changed files with 18 additions and 18 deletions
|
|
@ -548,24 +548,6 @@ def play_sound(arguments, clientid):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
send(f"Using: /playsound [music sound] [time] [volume]", clientid)
|
send(f"Using: /playsound [music sound] [time] [volume]", clientid)
|
||||||
|
|
||||||
|
|
||||||
def acl(arguments, client_id):
|
|
||||||
role = "admin"
|
|
||||||
admin_commands = pdata.roles_cmdlist(role)
|
|
||||||
if not admin_commands:
|
|
||||||
send("Error: Admin role not found.", client_id)
|
|
||||||
return
|
|
||||||
msg = "\ue046______________|ADMIN-CMDS-LISTS|________________\ue046\n"
|
|
||||||
admin_commands_list = admin_commands.split(', ')
|
|
||||||
for i, cmd in enumerate(admin_commands_list, 1):
|
|
||||||
if i % 10 == 0:
|
|
||||||
msg += "\n\ue046 || " + cmd
|
|
||||||
elif i == 1: # Add \ue046 || only to the first command of each line
|
|
||||||
msg += "\ue046 || " + cmd
|
|
||||||
else:
|
|
||||||
msg += ', ' + cmd
|
|
||||||
send(msg, client_id)
|
|
||||||
|
|
||||||
|
|
||||||
def protect_players(arguments, clientid):
|
def protect_players(arguments, clientid):
|
||||||
if arguments == [] or arguments == ['']:
|
if arguments == [] or arguments == ['']:
|
||||||
|
|
@ -596,6 +578,24 @@ def protect_players(arguments, clientid):
|
||||||
else:
|
else:
|
||||||
player.node.invincible = False
|
player.node.invincible = False
|
||||||
|
|
||||||
|
|
||||||
|
def acl(arguments, client_id):
|
||||||
|
role = "admin"
|
||||||
|
admin_commands = pdata.roles_cmdlist(role)
|
||||||
|
if not admin_commands:
|
||||||
|
send("Error: Admin role not found.", client_id)
|
||||||
|
return
|
||||||
|
msg = "\ue046______________|ADMIN-CMDS-LISTS|________________\ue046\n"
|
||||||
|
admin_commands_list = admin_commands.split(', ')
|
||||||
|
for i, cmd in enumerate(admin_commands_list, 1):
|
||||||
|
if i % 10 == 0:
|
||||||
|
msg += "\n\ue046 || " + cmd
|
||||||
|
elif i == 1: # Add \ue046 || only to the first command of each line
|
||||||
|
msg += "\ue046 || " + cmd
|
||||||
|
else:
|
||||||
|
msg += ', ' + cmd
|
||||||
|
send(msg, client_id)
|
||||||
|
|
||||||
|
|
||||||
def vcl(arguments, client_id):
|
def vcl(arguments, client_id):
|
||||||
role = "vip"
|
role = "vip"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue