for ( d = descriptor_list; d != NULL; d = d->next )
{
CHAR_DATA *victim;
victim = d->original ? d->original : d->character;
if ( d->connected == CON_PLAYING &&
is_same_clan(victim, ch) &&
!IS_SET(victim->comm,COMM_NOCLAN) &&
!IS_SET(victim->comm,COMM_QUIET))
{
sprintf( buf, "{b%s %s{w: %s\n\r", player_rank(ch), ch->name, argument );
stc(buf, victim);
}
}
return;
Trying to get it so that only members of the same clan can see the message sent.
Been playing around with it for a while and tried mixing variables up and such, this is the closest I've got - for it at least shows the original player the message. Any help getting this to work is appreciated.