08.06.2012, 15:18
system worlds, by command, with a limit, you should receive only the messages of the world where you are.
example please ??
example please ??
new Worlds[MAX_PLAYERS]; // Global Var
//Reset it on Discconect / Connect
//OnPlayerText Code:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
{
if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
SendClientMessage(i, 0xFF0000FF, text);
return 0;
}
return 0;
}
}
pawn Код:
Have a nice Day! |
new Worlds[MAX_PLAYERS]; // Global Var
//Reset it on Discconect / Connect
public OnPlayerText(playerid, text[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
{
if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
SendClientMessage(i, 0xFF0000FF, text);
return 0;
}
return 0;
}
}
return 1;
}
pawn Код:
the above guy mentioned it perfectly though |