30.06.2009, 15:44
Hi, I wanted to ask how to send a message to all other players except to yourself.
How can I do this?
Is there something like "playerid" e.g. "otherids"?
Or another trick?
pawn Код:
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
new string[56];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "*** %s has joined the server.", pName);
SendClientMessageToAll(GREY, string);//not for all, only for all the others
return 1;
}
Is there something like "playerid" e.g. "otherids"?
Or another trick?