if(strcmp("/w", cmdtext, true, 2)==0) { if(strlen(cmdtext) <= 3) { SendClientMessage(playerid,COLOR_RED,"USAGE: /w (msg)"); return 1; } new output[150]; new pname[24]; new string[128]; GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,2,strlen(cmdtext)); format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) { { format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output); format(string, sizeof(string), SendClientMessage(i,COLOR_YELLOW,string); } } } return 1; } } return 0; }
Originally Posted by dclaw
i think with textdraw or something :P
je bent nl he. "De" "Vries" |
if(strcmp("/w", cmdtext, true, 2)==0) { if(strlen(cmdtext) <= 3) { SendClientMessage(playerid,COLOR_RED,"USAGE: /w (msg)"); return 1; } new output[150]; new pname[24]; new string[128]; GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,2,strlen(cmdtext)); format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output); SetPlayerChatBubble(playerid, string, COLOR_WHITE, 150.0, 10000); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) { { format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output); SetPlayerChatBubble(playerid, string, COLOR_WHITE, 150.0, 10000); SendClientMessage(i,COLOR_YELLOW,string); } } } return 1; } } return 0; }
if(strcmp("/w", cmdtext, true, 2)==0) { if(strlen(cmdtext) <= 3) { SendClientMessage(playerid,COLOR_RED,"USAGE: /w (msg)"); return 1; } new output[150]; new pname[24]; new string[128]; GetPlayerName(playerid, pname, 24); strmid(output,cmdtext,2,strlen(cmdtext)); format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output); SetPlayerChatBubble(playerid, output, COLOR_WHITE, 150.0, 10000); printf("%s", string); for(new i=0;i<MAX_PLAYERS;i++) { if(IsPlayerConnected(i) && GetDistanceBetweenPlayers(playerid,i) < 10) { format(string, sizeof(string), "(WHISPER): %s(%d) %s",pname,playerid,output); SetPlayerChatBubble(playerid, output, COLOR_WHITE, 150.0, 10000); SendClientMessage(i,COLOR_YELLOW,string); } } return 1; }