SendClientMessage to only nearby players
#1

How can i do that?
I want that /b only send message to
nearby players, not over the whole
server. Here is the script
Quote:

if(strcmp(cmd, "/b", true) == 0)
{
strmid(tmp, cmdtext, 3, strlen(cmdtext));
if(!strlen(tmp))
{
SendClientMessage(playerid,COLOR_RED,"USAGE: /b [message]");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string),"(([%s]: %s ))",sendername,tmp);
SendClientMessageToAll(COLOR_GREY,string);
print(string);
return 1;
}

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)