Hi all,
How are you all? I hope you well.
I just been reading around on your site.
Found a few errors in the code the way it is illustrated:
http://forum.bigbrotherbot.net/downloads/?sa=view;down=162I amended the code, see below:
g_svcmds.c
ADD:
/*
=================
BB_Tell_f (B3 Private Messaging)
=================
*/
void BB_Tell_f( gentity_t *ent, int clientNum )
{
char buffer[MAX_TOKEN_CHARS];
int id;
gentity_t *id_ent;
trap_Argv( 1, buffer, sizeof( buffer ) );
id = atoi( buffer );
if ( !CheckID( ent, id ) ) {
return;
}
id_ent = g_entities + id;
trap_SendServerCommand( id_ent-g_entities, va("chat -1 \"%s\n\"", ConcatArgs(2) ) );
}
ADD to the "qboolean ConsoleCommand" function:
if (Q_stricmp (cmd, "tell") == 0)
{
BB_Tell_f( 0, 0 );
return qtrue;
}
g_local.h
ADD:
void BB_Tell_f( gentity_t *ent, int clientNum );
Sorry about this. I just try to help.
See you around.