View Single Post
blacktr4sh
Junior Member
Join Date: Apr 2020
Old 08-04-2020 , 16:13   Re: [TF2] Need help re-creating sv_cheats "bot" command
Reply With Quote #5

Quote:
Originally Posted by SSheriFF View Post
So use it like that: GetCmdArg(6, sName, sizeof(sName)); & GetCmdArg(2, sTeam, sizeof(sTeam)); each number constitutes the number of the argument after the command itself, so 1 is the first argument after the command, 2 is the second and so on...
Hmm okay, but I think it might be too repetitive. The first argument isn't always "-team blue", it could also be "-name Bot" or "-class Scout", same with any other argument. So I would have to check every time I get the argument. Is there a simpler way you know of or is that the only way it could be done?

Last edited by blacktr4sh; 08-04-2020 at 16:26.
blacktr4sh is offline