11.06.2014, 16:31
That's because you need code under OnPlayerText in order to convert it to a more 'roleplay' style of talking if that's what you mean. This is my OnPlayerText, along with a stock ProxDetector that is used to get the player's position and send messages based on how close the player is to another person.
Of course, you can change the OnPlayerText however you want in order to fit your server.
Код:
public OnPlayerText(playerid, text[]) { new message[128]; format(message, sizeof(message), "%s says: %s", GetName(playerid), text); ProxDetector(30.0, playerid, message, -1); return 0; } stock ProxDetector(Float:radi, playerid, string[],color) { new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); foreach(Player,i) { if(IsPlayerInRangeOfPoint(i,radi,x,y,z)) { SendClientMessage(i,color,string); } } }