how can i make announce only in chat

Pandaaa

New member
Messages
170
Points
0
Location
Wonderland
Github
donthedonn
Emulator
atcommand.c

ACMD(bst) {
if ( !message || !*message ) {
clif->message(fd, "Please, enter a message (usage: @bst <message>).");
return false;
}
if ( sd->bst_delay + 60 > (int)time(NULL) ) {
clif->message(fd, "There is a 60 seconds delay of using this command again");
return false;
}
sprintf( atcmd_output, "[Market] %s : %s", sd->status.name, message );
intif->broadcast2( atcmd_output, (int)strlen(atcmd_output)+1, strtol("0x9999FF", NULL, 0), 0x190, 12, 0, 0 );
sd->bst_delay = (int)time(NULL);
return true;
}

x6jt38.jpg


 
Back
Top