View Single Post
Re: How to make some change in buying
Old
  (#5)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: How to make some change in buying - 06-12-2004

if you want to do it easily , add a function like :

Code:
void Buy (edict_t *pEdict, char *cmd, char *cmd2)
{
   FakeClientCommand(pEdict, "buy", NULL, NULL);
   FakeClientCommand(pEdict, "menuselect", cmd, NULL);
   FakeClientCommand(pEdict, "menuselect", cmd2, NULL);
}
Then , when you want the bot to buy something like grenade ,

Buy (pEdict, "8", "4");
  
Reply With Quote