View Single Post
AlliedModders Donor
Join Date: May 2020
Location: Israel
Old 08-04-2020 , 15:24   Re: [TF2] Need help re-creating sv_cheats "bot" command
Reply With Quote #4

Originally Posted by blacktr4sh View Post
Yes, I know of GetCmdArg but the issue is that it doesn't combine spaces. When using the command there could be multiple arguments that would be "-name Bot" or "-team blu".
GetCmdArg(1, sName, sizeof(sName)); will only get "-name". Thanks for trying to help.
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...
Taking small private requests (Free) and big private requests (Paid).
Contact me via Discord: WilDick#1524

My Plugins:

Last edited by SSheriFF; 08-04-2020 at 16:05.
SSheriFF is offline