View Single Post
Re: pfnAddServerCommand
Old
  (#4)
Fierce Recon
Guest
 
Status:
Posts: n/a
Default Re: pfnAddServerCommand - 11-01-2004

Code:
const char *pcmd = Cmd_Argv(1); 
const char *arg1 = Cmd_Argv(2); 
const char *arg2 = Cmd_Argv(3); 
const char *arg3 = Cmd_Argv(4); 
const char *arg4 = Cmd_Argv(5);

Hope this helps

P.S. 0th argument is the command name, like rbcm

In your case it'll be: (lets pretend abcde is his name, and 1 is his team)
rbcm rb_addbot abcde 1
Code:
*pcmd = "rb_addbot";
*arg1 = "abcde";
*arg2 = "1";
*arg3 = UNDEFINED; //(DONT EVEN TRY THIS)
*arg4 = UNDEFINED; //(DONT EVEN TRY THIS)
:RTFM:

Last edited by Fierce Recon; 11-01-2004 at 08:07..
  
Reply With Quote