Thread: Bots by command
View Single Post
341464
Senior Member
Join Date: Dec 2010
Location: GetClientEyePosition
Old 02-08-2016 , 05:17   Re: Bots by command
Reply With Quote #9

You need to update the main thread instead of posting the update in the comment section.

Also, if you wish to expand the usage of the plugin, maybe implementing a check see if there are args behind the command. Like
PHP Code:

public Action:CmdBots(clientargs)
{
    if (
args != 1)
    {
        
ShowBotMenu(client);
        return 
Plugin_Handled;
    }
    
decl String:arg[16];
    
GetCmdArg(1argsizeof(arg));

    
/* tf_bot_add <arg here>..... */

    
return Plugin_Handled;

__________________

Last edited by 341464; 02-08-2016 at 05:18.
341464 is offline
Send a message via Skype™ to 341464