.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Possible for bots to issue commands? (http://forums.bots-united.com/showthread.php?t=2539)

desNotes 28-08-2004 15:50

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

[CS]m16 28-08-2004 16:38

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

desNotes 28-08-2004 16:53

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

[CS]m16 28-08-2004 16:59

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.