/All Chat
#3

Quote:
Originally Posted by xCoder
lol if you press T or F6 type a message and everybody can see it
No. As he said hes limiting the chat radius.

Change as needed:

Код:
dcmd_g(const playerid, const params[])
{
	if(!params[0]) return SendClientMessage(playerid,COLOR_ERROR,"Syntax Error: \"/g <TEXT>\".");
  	if(strlen(params) > 120) return SendClientMessage(playerid,COLOR_ERROR, "Error: Input too long. Please shorten your message to 120 chars.");
    new string128[128];
    format(string128, sizeof(string128), "[%i][GLOBAL] %s",playerid,params);
    SendPlayerMessageToAll(playerid,string128);
	return 1;
}
Reply


Messages In This Thread
/All Chat - by Adamrcook - 06.08.2009, 19:19
Re: /All Chat - by xCoder - 06.08.2009, 19:22
Re: /All Chat - by kaisersouse - 06.08.2009, 19:28
Re: /All Chat - by Adamrcook - 06.08.2009, 20:00

Forum Jump:


Users browsing this thread: 1 Guest(s)