This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
If a client enters addbot into the console the server will crash.
why would this happen?
i want a bot to be added when a client enters addbot on a dedicated server?
if (FStrEq(pcmd, "addbot"))
{
for (i=0; i < 32; i++)
{
if ((the_player_admin_s[i].is_used == TRUE) && (the_player_admin_s[i].pEdict ==
pEntity) && (the_player_admin_s[i].was_admin==TRUE))
{
BotCreate( NULL, arg1, arg2, arg3, arg4 );
// have to delay here or engine gives "Tried to write to
// uninitialized sizebuf_t" error and crashes...
// bot_cfg_pause_time = gpGlobals->time + 2.0;
bot_check_time = gpGlobals->time + 5.0;
return;
}
else
{
ClientPrint(pEntity, HUD_PRINTCONSOLE, "You do not have access to this
command.\n");
return;
}
break;
}
return;
}
--
_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders