Using Admin Commands On IRC
#3

codded in hurry
here you go !players

pawn Код:
ICMD:players( botid, channel[], user[], host[], params[] )
{
    new tempstr[128], string[200], count, name[24];
    for( new i ,slots = GetMaxPlayers(); i < slots; i++ )
    {
        if( IsPlayerConnected(i) )
        {
            count++;
            GetPlayerName( i, name, sizeof(name) );
            format( tempstr, sizeof(tempstr), "%s , %s", tempstr, name );
        }
    }
    if( count )
    {
        format( string, sizeof(string), "Connected Players[%d/%d]:- %s", count, GetMaxPlayers(), tempstr);
               IRC_Say( botid, channel, string );
    }else IRC_Say( botid, channel, "No Player Online" );
    return 1;
}
Reply


Messages In This Thread
Using Admin Commands On IRC - by shayan122 - 25.06.2012, 05:26
Re: Using Admin Commands On IRC - by Ironboy - 25.06.2012, 05:39
Re: Using Admin Commands On IRC - by Niko_boy - 25.06.2012, 05:58
Re: Using Admin Commands On IRC - by shayan122 - 25.06.2012, 06:25
Re: Using Admin Commands On IRC - by Djole1337 - 25.06.2012, 08:10
Re: Using Admin Commands On IRC - by shayan122 - 25.06.2012, 08:40

Forum Jump:


Users browsing this thread: 1 Guest(s)