Closed Jameskmonger closed 11 years ago
/* * SendClientToAllExcept * ---------------------------------------------- */ stock this.SendClientMessageToAllExcept(playerid, color, message[], va_args<>) { this.CheckStringArgument(2, playerid); if (numargs() > 3) { va_formatex(this.TextBuffer, _, message, va_start<3>); foreach(new p : Player) { if(p != playerid) SendClientMessage(p, color, this.TextBuffer); } return 1; } else { foreach(new p : Player) { if(p != playerid) SendClientMessage(p, color, message); } return 1; } } #define SendClientMessageToAllExcept Text.SendClientMessageToAllExcept
I put the function in PBP.Text.functions but I'm not sure how to properly submit it so I just posted it here
Thanks.
I put the function in PBP.Text.functions but I'm not sure how to properly submit it so I just posted it here