command /admins
#4

Code:
dcmd_admins(playerid,params[])
{
#pragma unused params
new sadmin[128], admin[128], modek[128], string[256];
new a,v,m;
//Administratorzy
for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))format(sadmin, sizeof(sadmin), "%s jest obecnie online.\n%s", PlayerName(i),sadmin),a++;
if(PlayerInfo[i][IsPlayerAdm])format(admin, sizeof(admin), "%s jest obecnie online.\n%s", PlayerName(i),admin),v++;
if(PlayerInfo[i][IsPlayerMod])format(modek, sizeof(modek), "%s jest obecnie online.\n%s", PlayerName(i),modek),m++;
}
if(!a)format(sadmin, sizeof(sadmin), "Aktualnie nie ma Super Adminуw OnLine");
if(!v)format(admin, sizeof(admin), "Aktualnie nie ma Adminуw OnLine");
if(!m)format(modek, sizeof(modek), "Aktualnie nie ma Moderatorуw OnLine");

format(string,256,"Super Administratorzy:\n %s \n\nAdministratorzy:\n %s \n\nModeratorzy:\n %s", sadmin, admin, modek);
ShowPlayerDialog(playerid,ADMINS,DIALOG_STYLE_MSGBOX,"Administracja OnLine",string,"Ok","Wyjdz");
return 1;
}
Reply


Messages In This Thread
command /admins - by MrLeNy - 16.12.2009, 15:17
Re: command /admins - by Robert007 - 16.12.2009, 16:25
Re: command /admins - by MrLeNy - 16.12.2009, 16:28
Re: command /admins - by Robert007 - 16.12.2009, 16:40
Re: command /admins - by MrLeNy - 16.12.2009, 16:46

Forum Jump:


Users browsing this thread: 1 Guest(s)