23.09.2009, 21:51
pawn Код:
public OnPlayerText(playerid, text[])
{
new name[MAX_PLAYERS];
new str[256];
GetPlayerName(playerid,name,sizeof(name));
format(str,sizeof(str),"-> World Chat(%s): %s", name, cmdtext);
SendMessageToMyWorld(0xFFFF00AA, str) 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);
}
}
}
OnPlayerTExt is for the Chat
CommandText is only for commands
didn't test
if it gives errors tell me ill try to fox em then
~SaiBerFun