mirror of
https://github.com/hypervortex/VH-Bombsquad-Modded-Server-Files
synced 2025-11-07 17:36:08 +00:00
Add files via upload
This commit is contained in:
parent
874a8fcbb4
commit
23871b9539
1 changed files with 18 additions and 8 deletions
|
|
@ -7,7 +7,7 @@ from .commands import Fun
|
||||||
from .commands import Cheats
|
from .commands import Cheats
|
||||||
from .commands import NewCmds
|
from .commands import NewCmds
|
||||||
from .commands import CoinCmds
|
from .commands import CoinCmds
|
||||||
|
from chatHandle.ChatCommands.commands.Handlers import send
|
||||||
from .Handlers import clientid_to_accountid
|
from .Handlers import clientid_to_accountid
|
||||||
from .Handlers import check_permissions
|
from .Handlers import check_permissions
|
||||||
from chatHandle.chatFilter import ChatFilter
|
from chatHandle.chatFilter import ChatFilter
|
||||||
|
|
@ -83,7 +83,7 @@ def Command(msg, clientid):
|
||||||
reply = '\ue043|| PLAYER COMMAND ACCEPTED ||\ue043'
|
reply = '\ue043|| PLAYER COMMAND ACCEPTED ||\ue043'
|
||||||
|
|
||||||
if command_type(command) == "Normal":
|
if command_type(command) == "Normal":
|
||||||
NormalCommands.ExcelCommand(command, arguments, clientid, accountid)
|
NormalCommands.ExcelCommand(command, arguments, clientid, accountid, ARGUMENTS)
|
||||||
|
|
||||||
elif command_type(command) == "CoinCmd":
|
elif command_type(command) == "CoinCmd":
|
||||||
CoinCmds.CoinCommands(command, arguments, clientid, accountid)
|
CoinCmds.CoinCommands(command, arguments, clientid, accountid)
|
||||||
|
|
@ -152,12 +152,22 @@ def QuickAccess(msg, client_id):
|
||||||
return None
|
return None
|
||||||
elif msg.startswith("/dm"):
|
elif msg.startswith("/dm"):
|
||||||
name = ""
|
name = ""
|
||||||
teamid = 0
|
a = msg.lower().split()[1:]
|
||||||
for i in ba.internal.get_foreground_host_session().sessionplayers:
|
if len(a) < 2: # Check if there are enough arguments
|
||||||
if i.inputdevice.client_id == client_id:
|
send(f"Usage: /dm [clientid] [message]", client_id)
|
||||||
name = i.getname(True)
|
else:
|
||||||
_ba.screenmessage(name + ":" + msg[1:], clients=[client_id],
|
clientid = int(a[0])
|
||||||
color=(0.3, 0.6, 0.3), transient=True)
|
message = ' '.join(a[1:]) # Join the message list into a single string
|
||||||
|
for i in ba.internal.get_foreground_host_session().sessionplayers:
|
||||||
|
if i.inputdevice.client_id == client_id:
|
||||||
|
name = i.getname(full=True, icon=True)
|
||||||
|
if i.inputdevice.client_id == clientid:
|
||||||
|
pbid = i.get_v1_account_id()
|
||||||
|
if pbid:
|
||||||
|
send(f"{name}: {message}", clientid)
|
||||||
|
send(f"dm sent successfully", client_id)
|
||||||
|
else:
|
||||||
|
send(f"player not found", client_id)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
elif msg.startswith("."):
|
elif msg.startswith("."):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue