Create command /admins in dialog [ERROR]
#7

Quote:
Originally Posted by ForCop
Посмотреть сообщение
Код:
CMD:admins()
{
	new string[1000],adminname[MAX_PLAYER_NAME], AdminsOnLine;
	for(new i=0; i<MAX_PLAYERS; i++){
		if(!IsPlayerConnected(i) && Admin[i] == 0) continue;
		AdminsOnLine++;
	}
	if(AdminsOnLine > 0){
		format(string, sizeof(string),"Admins is online (%d)", AdminsOnLine);
	}else format(string, sizeof(string),"Admins are not online!", AdminsOnLine);

	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(!IsPlayerConnected(i) && Admin[i] == 0) continue;
		GetPlayerName(i,adminname, sizeof(adminname));
format(string, sizeof(string),"%s\n %s(ID:%i) - {FF0000}Level: %i{FFFFFF}\n",string, adminname, i,Admin[i]);
}
return ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"O nline Admins",string,"OK","");
}
CMD:admins(playerid) - player command
Reply


Messages In This Thread
Create command /admins in dialog [ERROR] - by Tihoy232 - 27.03.2018, 08:25
Re: Create command /admins in dialog [ERROR] - by Mike861 - 27.03.2018, 08:26
Re: Create command /admins in dialog [ERROR] - by Tihoy232 - 27.03.2018, 08:28
Re: Create command /admins in dialog [ERROR] - by Florin48 - 27.03.2018, 08:41
Re: Create command /admins in dialog [ERROR] - by ForCop - 27.03.2018, 08:57
Re: Create command /admins in dialog [ERROR] - by Stev - 27.03.2018, 09:03
Re: Create command /admins in dialog [ERROR] - by UFF - 27.03.2018, 14:43
Re: Create command /admins in dialog [ERROR] - by ForCop - 27.03.2018, 14:49
Re: Create command /admins in dialog [ERROR] - by UFF - 27.03.2018, 14:57
Re: Create command /admins in dialog [ERROR] - by ForCop - 27.03.2018, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)