Quote:
Originally Posted by [LDT
LuxurY ]
Something like this:
pawn Код:
if ( !strcmp ( cmd , "/admins" , true ) ) { new strtmp[24]; SendClientMessage ( playerid , 0xAA3333AA , "Admins:" ); for ( new i = 0; i < MAX_PLAYERS; i++ ) { if ( IsPlayerAdmin ( i ) ) { GetPlayerName ( i , strtmp , sizeof ( strtmp ) ); SendClientMessage ( playerid , 0xAA3333AA , strtmp ); } } return 1; }
|
You didn't even putted a check for players if they are connected.