--
[ Picked text/plain from multipart/alternative ]
Use the engine->ServerCommand to send a kick or kickid command.
Q_snprintf( svrcmd, sizeof(svrcmd), "kick %s\n", name );
m_Engine->ServerCommand(svrcmd);
Note that kickid would use the userid of the bot (not the entity id).
On Feb 5, 2008 9:56 AM, David Adams <[EMAIL PROTECTED]> wrote:
> --
> [ Picked text/plain from multipart/alternative ]
> ok so ive searched through the list on removing entities from a server,
> but
> i havent been able to find a conclusion on how to do this. I am making a
> mod
> to hl2dm and adding fake clients to the server(bots). I am looking for a
> way to remove them from the server completely. Right now, i can get them
> to
> dissapear from the map and scoreboard, but when they are re-added, they
> have
> a (1) or (n) whatever by thier name as if to say the original name is
> taken,
> and their entity index has increased, and keeps increasing every time they
> are removed and added.
>
>
> Im using the player->remove function and Ive also tried
> engine->RemoveEdict
> and gEntList.CleanUpDeleteList() with no improvement. I am finding the
> bots
> entity index by printing player->entindex. thanks!
> --
>
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives,
> please visit:
> http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders