23.09.2009, 21:11
This is just a total guess. Don't know if it will work but give it a try. :P
Let me know.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new name[MAX_PLAYERS];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"-> World Chat(%s): %s", name, cmdtext);
SendMessageToMyWorld(0xFFFF00AA, string) return true;
return false;
}
pawn Код:
SendMessageToMyWorld(color, text[])
{
new world;
world = GetPlayerVirtualWorld(playerid);
for (new i; i < MAX_PLAYERS; i++)
{
if (world == GetPlayerVirtualWorld(i))
{
SendClientMessage(i, color, text);
}
}
}