![]() |
Possible for bots to issue commands?
Is it possible for bots to issue commands through client messages? If a bot sent "timeleft,' 'nextmap,' etc. would be possible to catch it and process the command or does Metamod/SDK prevent it?
Thanks, desNotes |
Re: Possible for bots to issue commands?
You can use the FakeClientCommand() function to make a bot using commands , etc :
FakeClientCommand (pBot->pEdict, "timeleft", NULL, NULL); Pass "NULL" for unused arguements |
Re: Possible for bots to issue commands?
Please excuse my ignorance but would the FakeClientCommand() function be in the bot source code, metamod, HL SDK or in the AdminMod/AMX plugin?
Thanks, desNotes Nevermind...found it in HPB_bot...was looking in ricobot |
Re: Possible for bots to issue commands?
Well , if I'm not wrong , it should be in the bot source as I take a look at the botman's HPB_template about 1 years ago , yep thats right !
|
All times are GMT +2. The time now is 07:53. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.