06.10.2014, 21:30
Quote:
loop through all of the existing players and check wether one of the players is an admin and if he does retreive his ame and format a message, then sendclientmessage with the information and you're done.
|
For Example:
pawn Код:
for(new i = 0;i < MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
new name[MAX_PLAYER_NAME],str[256];
GetPlayerName(i,Name,sizeof(Name));
format(str,sizeof(str)),"Admin %s is online.",name);
SendClientMessage(playerid,0,str);
}
}