.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Executing command on other clients? (http://forums.bots-united.com/showthread.php?t=1409)

BAStumm 20-04-2004 22:57

Re: Executing command on other clients?
 
This comes from part of my admin stuff and a monster slap command, thanks botman for monster plugin :)

CLIENT_COMMAND(INDEXENT(i), "say I\'m a Llama, please forgive me!\n");

Yes speak should work.

Lazy 20-04-2004 23:15

Re: Executing command on other clients?
 
Just a quick note:

You shouldn't use INDEXENT in a function call like that, a better way is to assign the result to an edict_t pointer and test it with FNullEnt and then call the function.

BAStumm 20-04-2004 23:57

Re: Executing command on other clients?
 
Code:

                for (i = 1; i <= gpGlobals->maxClients; i++)
                {
                  if (INDEXENT(i))
                  {
                        if (GETPLAYERUSERID(INDEXENT(i)) == slap_num)
                        {

???


All times are GMT +2. The time now is 20:41.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.