25.06.2012, 05:58
codded in hurry
here you go !players
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;
}