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