No such command "+attack"
Posted: Sun Feb 20, 2022 8:24 pm
Hi, I try to call the "+attack" command for each player on the server.
this is my code but when I run it I get this message in the individual player console:
Here is my code
this is my code but when I run it I get this message in the individual player console:
Code: Select all
Unknown command: +attack
Here is my code
Code: Select all
for i in range(1, 4):
try:
player = Player(i) # create player entity
player.client_command("give weapon_smokegrenade", True) # give player smokegrenade
player.client_command("use weapon_smokegrenade", True) # select smokegrenade
player.client_command("+attack", True)
player.client_command("-attack", True)
except Exception as e: # catch exception if player does not excist
print(e)
continue