Quote:
Originally Posted by Kastranova
you mean something like this?
pawn Код:
public OnPlayerText(playerid, text[]) { #define COLOR_MESSAGE 0xFFFF00AA new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid,pname,MAX_PLAYER_NAME); new id; new string[128]; new params[128]; new Float:x,Float:y,Float:z; GetPlayerPos(playerid, x, y, z); if(IsPlayerInRangeOfPoint(id,10/*range around the player*/,x,y,z)) { format(string,sizeof(string),"%s(%d) said: %s",pname,playerid,params); SendClientMessage(id,COLOR_MESSAGE,string); } return 1; }
This code can be used in a roleplay... "Name says: text he says"
|
Nope that does not work. Tried it, still the DM way talking is on and other thing is added is like PM like stuff when I write test it says says in Yellow (PLAYERNAME) TEXT (ID) and below it normal chat