15.02.2014, 06:52
You can do it manually.Returning 0 on OnPlayerText will not send the message.
First Get the virtual world of the player.Then a for loop(or foreach) to loop through all the player with the same virtual world and SendClientMessage to them.At the end return 0.
First Get the virtual world of the player.Then a for loop(or foreach) to loop through all the player with the same virtual world and SendClientMessage to them.At the end return 0.
Код:
public OnPlayerText(playerid,text[]) { new msg[128]; new vw = GetPlayerVirtualWorld(playerid); format(msg,sizeof(msg),"%s:%s",playername,text); for(new i = 0;i < maxplayers;i++) { if(GetPlayerVirtualWorld(i) == vw) SendClientMessage(i,color,msg); } return 0; }