31.05.2010, 17:34
How can i do that?
I want that /b only send message to
nearby players, not over the whole
server. Here is the script
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; } |