Jump to content

[DELETED]Problema admins


MatR3
 Share

Recommended Posts

CMD:admins(playerid, params[])
{
    
    if(IsPlayerConnected(playerid))
    {
        new string[200],sendername[30];
        SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
        SendClientMessage(playerid, COLOR_WHITE, "Poti deschide un ticket in panel (www.b-Game.ro/panel) daca ai o problema ce nu poate fi rezolvata in joc (cont blocat, parola pierdute).");
        SendClientMessage(playerid, COLOR_WHITE, "{408080}-----Admins Online----");
        foreach(Player,i)
        {
            if(IsPlayerConnected(i))
            {
                if(PlayerInfo[pAdmin] == 1)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 1", i, sendername);
                    SendClientMessage(playerid, -1, string);
                }
                if(PlayerInfo[pAdmin] == 2)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 2", i, sendername);
                    SendClientMessage(playerid, -1, string);
                }
                if(PlayerInfo[pAdmin] == 3)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 3", i, sendername);
                    SendClientMessage(playerid, -1, string);
                }
                if(PlayerInfo[pAdmin] == 4)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 4", i, sendername);
                    SendClientMessage(playerid, -1, string);
                }
                if(PlayerInfo[pAdmin] == 5)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 5", i, sendername);
                    SendClientMessage(playerid, -1, string);
                }
                if(PlayerInfo[pAdmin] == 6)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 6", i, sendername);
                    SendClientMessage(playerid, -1, string);
                }
            }
        }
        SendClientMessage(playerid, COLOR_WHITE, "{408080}--------------------------------------------");
        SendClientMessage(playerid, COLOR_WHITE, "Daca ai vreo problema, poti folosi /report. Pentru intrebari legate de joc poti folosi /n.");
        SendClientMessage(playerid, COLOR_WHITE, "{408080}--------------------------------------------");
     }
    return 1;
}

Cum pot sa adaug si admin 7 ? nu imi merge 

Link to comment
Share on other sites

                if(PlayerInfo[pAdmin] == 7)
                {
                    GetPlayerName(i, sendername, sizeof(sendername));
                    format(string, 256, "{FFFFFF} (%d) %s - admin level 7", i, sendername);
                    SendClientMessage(playerid, -1, string); 

asa am si eu.

Link to comment
Share on other sites

Topic-ul a fost șters deoarece nu ai respectat modelul de postare. Te rugăm sa revii cu alt topic in care să respecți modelul.

Topic șters!

Respecta si vei fi respectat.

 

BigInt Pawn:

Pacman C++: 

Snake C++:

Minesweeper C++:

 

mattbb.cash

leaks.ro

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...