Jump to content
  • 0

pomoc Admins dialog


Totalka

Dotaz

chtel bych od vas pomoc toto preves do admins v dialogu v nejakem slusnem zobrazeni,jedno sem tu uz nasel ale blbne.

jde o exis.

 

 

dcmd_admins(playerid, params[])

{
    #pragma unused params
 
    TestPrint("dcmd_admins(playerid, params[])");
 
if(AdminsOnline() == 0) return MLMSvitz(playerid, "[  !  ] Na serveru neni pritomen zadny Administrator.", "[  !  ] Na serveri nieje pritomny ziadny Administrator.");
 
SendClientMessage(playerid, B_SVITIVA, "Administratori On-line /einfo");
 
    new string[60];
 
for(new i=0;i<=MAX_PLAYERS_EX;i++)
{
if(IsPlayerConnected(i))
  {
if(IsPlayerAdmin(i) && Informace[AdminLevel] == 0)
{
format(string, 60, "[ On-line ] %s |  [ RCON ]",Jmeno(i));
SystemMessage(playerid,string);
}
else if(Informace[AdminLevel] > 0 && !IsPlayerAdmin(i))
{
format(string, 60, "[ On-line ] %s |  [ LVL %d ]",Jmeno(i),Informace[AdminLevel]);
SystemMessage(playerid,string);
}
else if(IsPlayerAdmin(i) && Informace[AdminLevel] > 0)
{
format(string, 60, "[ On-line ] %s |  [ LVL %d + RCON ]",Jmeno(i),Informace[AdminLevel]);
SystemMessage(playerid,string);
}
  }
  }
return true;
}

 

Link to comment
Share on other sites

0 odpovědí na tuto otázku

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...