No such command "+attack"

Please post any questions about developing your plugin here. Please use the search function before posting!
Frank_der_Golf_Fahrer
Junior Member
Posts: 10
Joined: Sat Feb 12, 2022 10:26 am

No such command "+attack"

Postby Frank_der_Golf_Fahrer » 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:

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

Return to “Plugin Development Support”

Who is online

Users browsing this forum: No registered users and 41 guests