When i do /admins ((IG)) it dont pop up the information
#1

When i do /admins in game i wont pop up like (Admins Online: ****) nothing shows.
How can i fix that problem?
Reply
#2

Please post your code so people can help you.
Reply
#3

Go to your gamemode and press CTRL + F then search for /admins or cmd_admins or whatever your command processor is, then post the command code here and we will help you
Reply
#4

Do you have a /admins command in your script?
Reply
#5

Did you mean that we will guess your code?
Reply
#6

Код HTML:
CMD:admins(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME],string[64 + MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 128, "Online Admins: %s", sendername);
                SendClientMessage(i, COLOR_GREEN, string);
            }
        }
    }
    return 1;
}
here is the code so what should i edit?
Reply
#7

What is your code for 'IsPlayerAdmin(i)',
also on new sendername[MAX_PLAYER_NAME], string[64 + MAX_PLAYER_NAME] -- the string is only 88 bytes long. change the string to , string[128];
Reply
#8

Quote:
Originally Posted by JackieJ
Посмотреть сообщение
Код HTML:
CMD:admins(playerid, params[])
{
    new sendername[MAX_PLAYER_NAME],string[64 + MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                GetPlayerName(i, sendername, sizeof(sendername));
                format(string, 128, "Online Admins: %s", sendername);
                SendClientMessage(i, COLOR_GREEN, string);
            }
        }
    }
    return 1;
}
here is the code so what should i edit?
What do you get? Nothing or it just ignores you like without sending a message that this cmd is incorrect etc.
Reply
#9

IsPlayerAdmin will only give the name of Rcon admin. What variable do u use to make a player admin?
Reply
#10

Guys please can you fix it up so it will works?.

i have only script in three day now, it's my first command ((??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)