PDA

View Full Version : Print to chat for All but not for me


Debesėlis
02-01-2012, 17:45
How to print to chat only for other players? Because i see message.


if ( client != client )
{
CPrintToChatAll( "%t", "CONNECT", name );
}

McFlurry
02-01-2012, 17:59
CSkipNextClient(client);
CPrintToChatAll("%t", "CONNECT", name);

Debesėlis
02-02-2012, 02:53
How to do same for sound? Because i hear the sound.


CSkipNextClient( client );
EmitSoundToAll( joined_sound );
CPrintToChatAll( "%t", "CONNECT", name );

McFlurry
02-02-2012, 08:40
for(new i=1;i<=MaxClients;i++)
{
if(i != client && IsClientInGame(i))
{
EmitSoundToClient(i, joined_sound);
CPrintToChat(i, "%t", "CONNECT", name);
}
}This should remove the need for the CSkipNextClient.