AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Create a 'hidden' bot (https://forums.alliedmods.net/showthread.php?t=46810)

Obbin 11-03-2006 06:10

Create a 'hidden' bot
 
Is it possible to create a bot that joins a team but does not show up on the scoreboard?

jim_yang 11-03-2006 06:22

Re: Create a 'hidden' bot
 
no

Nostrodamous 11-03-2006 07:22

Re: Create a 'hidden' bot
 
it might be possable with a NPC bot , theres a totrial on NPC's . Im not sure if the NPC will show on scoreboard. :cry:

Obbin 11-03-2006 07:27

Re: Create a 'hidden' bot
 
A NPC won't do it, it has to be an actual fakeclient.

schnitzelmaker 11-03-2006 07:41

Re: Create a 'hidden' bot
 
You can hide players from scoreboard with a Plugin.This must also work with bots.
Here a plugin,that can admins use to hide them from scoreboard:http://www.nsmod.org/forums/index.php?showtopic=2468

Nostrodamous 11-03-2006 08:14

Re: Create a 'hidden' bot
 
Quote:

Originally Posted by Obbin (Post 399025)
A NPC won't do it, it has to be an actual fakeclient.

well if you went to the tutorial and read it youd know that you can make a NPC bot , reading is alot of work for people some people .

VEN 11-03-2006 08:17

Re: Create a 'hidden' bot
 
I guess he wanted fakeclient, not actual bot.

Nostrodamous 11-03-2006 09:21

Re: Create a 'hidden' bot
 
whats the differance ? :|

schnitzelmaker 11-03-2006 09:36

Re: Create a 'hidden' bot
 
"fakeclient" is a simulated player,this player need a slot and they have an id(1-32).
A "bot" from the tutorial is an entity that simulate some bot function,but they dont have function/abilities like a client.
An example: a fakeclient can pick up a weapon if he touch one, a bot you must give him the weapon.

With a bot i mean the bot from tutorial,not an Metamod Bot.

Nostrodamous 11-03-2006 09:45

Re: Create a 'hidden' bot
 
ah i see , please excuse my last posts then on behalf of the fact im retarded :)

Obbin 11-03-2006 11:35

Re: Create a 'hidden' bot
 
Maybe I should clarify my problem to help you find other ways.
I want to be able to print text in red (in the chat) to counter terrorist players even if there are no terrorists in the server. For this I would need to create a fakeclient in the T team for just a moment, but I don't want it to show up in the scoreboard.

Nostrodamous 11-03-2006 12:07

Re: Create a 'hidden' bot
 
hmmm , there has to be a way to make the program "think" that there is a terrorist . maybee adding and removing a bot while executing message?

Obbin 11-03-2006 12:09

Re: Create a 'hidden' bot
 
Quote:

Originally Posted by Nostrodamous (Post 399119)
hmmm , there has to be a way to make the program "think" that there is a terrorist . maybee adding and removing a bot while executing message?

That's what i just wrote.

I can do that, but I don't want it to show up/flash in the scoreboard.

VEN 11-03-2006 13:04

Re: Create a 'hidden' bot
 
Obbin, there are the more efficient way, check this post http://forums.alliedmods.net/showthr...588#post397588
Tell me if you need some explanations.

Obbin 11-03-2006 13:45

Re: Create a 'hidden' bot
 
I tried that, but it dosn't seem to work :S

This one isn't working
Code:
public colorshit(id) {     new CsTeams:team = cs_get_user_team(id)     if (team==CS_TEAM_T)     {         cs_set_user_team(id,CS_TEAM_CT)             if(is_user_connected(id))         {             message_begin(MSG_ONE, SayText, {0, 0, 0}, id);             write_byte(id);             write_string("^x03 Test");             message_end();         }         cs_set_user_team(id,CS_TEAM_T)     }     else     {         cs_set_user_team(id,CS_TEAM_T)             if(is_user_connected(id))         {             message_begin(MSG_ONE, SayText, {0, 0, 0}, id);             write_byte(id);             write_string("^x03 Test");             message_end();         }         cs_set_user_team(id,CS_TEAM_CT)     }     return PLUGIN_HANDLED }

VEN 11-03-2006 13:50

Re: Create a 'hidden' bot
 
If you didn't get i linked on the pre-last post of the thread, read it.


All times are GMT -4. The time now is 21:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.