05.08.2010, 17:32
(
Последний раз редактировалось Kyle; 05.08.2010 в 19:15.
)
Just a simple public to send messages to the selected world you wish.
E.G: SendClientMessageToVirtualWorld("This will send to virtual world 2",2,COLOR_RED)
pawn Код:
forward SendClientMessageToAllInVirtualWorld(string[],color,worldid);
public SendClientMessageToAllInVirtualWorld(string[],color,worldid)
{
for(new j=0; j<MAX_SERVER_SLOTS; j++)
{
if(IsPlayerConnected(j) && GetPlayerVirtualWorld(j) == worldid)
{
SendClientMessage(j,color,string);
}
}
}