.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: Executing command on other clients?
Old
  (#11)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: Executing command on other clients? - 20-04-2004

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.






  
Reply With Quote
Re: Executing command on other clients?
Old
  (#12)
Lazy
Member
 
Lazy's Avatar
 
Status: Offline
Posts: 236
Join Date: Jan 2004
Location: Toronto, Ontario, Canada
Default Re: Executing command on other clients? - 20-04-2004

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.
  
Reply With Quote
Re: Executing command on other clients?
Old
  (#13)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: Executing command on other clients? - 20-04-2004

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







Last edited by BAStumm; 20-04-2004 at 23:59..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com