admins CMD
#1

irc admins cmd aren't work good. im do it show id 0 player please fix this

pawn Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
    new count,lolz1[200];
    for (new giveid; giveid != GetMaxPlayers(); giveid ++)
    for(new i=0; i<=MAX_PLAYERS; i++)

    {
        if (!IsPlayerConnected(giveid)) continue;
        if (adminlevel[i] >= 1)
        {
            if(count == 0) IRC_GroupSay(IRC_Group, EchoChan,"3*** Admin's Online:1");
            GetPlayerName(giveid,lolz1,32);
            format(lolz1,200,"[%d] %s",giveid,lolz1);
            IRC_GroupSay(IRC_Group, EchoChan, lolz1);
            count++;
        }
    }
    if (count == 0) return IRC_GroupSay(IRC_Group, EchoChan,"4*** Unfortiantly there are no admins's online");
    return true;
}
Reply
#2

pawn Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
    new count,lolz1[200];
    for (new giveid; giveid != GetMaxPlayers(); giveid ++)
    for(new i=0; i<=MAX_PLAYERS; i++)

    {
        if (!IsPlayerConnected(giveid)) continue;
        if (adminlevel[i] >= 1)
        {
            if(count == 0) IRC_GroupSay(IRC_Group, EchoChan,"3*** Admin's Online:1");
            GetPlayerName(giveid,lolz1,32);
            format(lolz1,200,"[%d] %s",i,lolz1);
            IRC_GroupSay(IRC_Group, EchoChan, lolz1);
            count++;
        }
    }
    if (count == 0) return IRC_GroupSay(IRC_Group, EchoChan,"4*** Unfortiantly there are no admins's online");
    return true;
}
Should work.
Reply
#3

id right name wrong
Reply
#4

pawn Код:
IRCCMD:admins(botid, channel[], user[], host[], params[])
{
    new count,lolz1[200];
    for (new giveid; giveid != GetMaxPlayers(); giveid ++)
    for(new i=0; i<=MAX_PLAYERS; i++)

    {
        if (!IsPlayerConnected(giveid)) continue;
        if (adminlevel[i] >= 1)
        {
            if(count == 0) IRC_GroupSay(IRC_Group, EchoChan,"3*** Admin's Online:1");
            GetPlayerName(i,lolz1,32);
            format(lolz1,200,"[%d] %s",i,lolz1);
            IRC_GroupSay(IRC_Group, EchoChan, lolz1);
            count++;
        }
    }
    if (count == 0) return IRC_GroupSay(IRC_Group, EchoChan,"4*** Unfortiantly there are no admins's online");
    return true;
}
Reply
#5

work good thanks
Reply
#6

Not a problem .
Reply
#7

And I make /irc cmd for ingame but this isn't work can you give me that code please
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)