Quote:
Originally Posted by zT KiNgKoNg
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { new str[40], strname[1+MAX_PLAYER_NAME+1]; GetPlayerName(playerid, strname, sizeof(strname)); format(str,sizeof(str),"[Connect]: %s Has connected to the server", strname); SendClientMessage(i, -1, str); } }
|
that basicly is same as Send message to all
u should do a statement above it to check if index i is not equal to playerid
thats what arukta did , so his answer is appropriate