Online and Offline admins
#18

Quote:
Originally Posted by Ox1gEN
Посмотреть сообщение
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.
I agree.
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);
     }
}
Reply


Messages In This Thread
Online and Offline admins - by ShoortyFl - 05.10.2014, 16:43
Re: Online and Offline admins - by ZBits - 05.10.2014, 16:48
Re: Online and Offline admins - by ShoortyFl - 05.10.2014, 16:58
Re: Online and Offline admins - by Ox1gEN - 05.10.2014, 17:00
Re: Online and Offline admins - by ShoortyFl - 05.10.2014, 17:01
AW: Online and Offline admins - by Nero_3D - 05.10.2014, 17:19
Re: Online and Offline admins - by ShoortyFl - 05.10.2014, 17:22
AW: Online and Offline admins - by Nero_3D - 05.10.2014, 17:31
Re: Online and Offline admins - by ShoortyFl - 05.10.2014, 19:01
Re: Online and Offline admins - by Shady - 05.10.2014, 22:44
Re: Online and Offline admins - by ShoortyFl - 05.10.2014, 23:23
Re: Online and Offline admins - by ZBits - 05.10.2014, 23:37
Re: Online and Offline admins - by Abagail - 06.10.2014, 00:50
Re: Online and Offline admins - by ShoortyFl - 06.10.2014, 09:10
Re: Online and Offline admins - by MillenniumG - 06.10.2014, 10:55
Re: Online and Offline admins - by ShoortyFl - 06.10.2014, 17:34
Re: Online and Offline admins - by Jefff - 06.10.2014, 21:21
AW: Re: Online and Offline admins - by lcp9 - 06.10.2014, 21:30
Re: Online and Offline admins - by ShoortyFl - 06.10.2014, 22:53
Re: Online and Offline admins - by Eth - 06.10.2014, 23:01

Forum Jump:


Users browsing this thread: 3 Guest(s)