Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- irccmd_players(conn, channel[], user[], params[])
- {
- #pragma unused params, user
- new counter = 0,
- players[SLOTS],
- PlayerNames[1024],
- string[1024];
- for(new i=0; i<SLOTS; i++)
- {
- if(IsPlayerConnected(i))
- {
- players[counter] = i;
- counter++;
- }
- }
- if(!counter){
- format(string, 64, "6Connected Players[%d]: 14No Players Online!", counter);
- ircSay(conn, channel, string);
- }
- else
- {
- if(counter <= 30)
- {
- for(new i=0; i<=counter; i++)
- {
- if(IsPlayerConnected(players[i]))
- {
- if(pData[players[i]][pAdmin] > 0)
- {
- if(pData[players[i]][pAdmin] == 1 || pData[players[i]][pAdmin] == 2)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,7%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 3 || pData[players[i]][pAdmin] == 4)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,8%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 5)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,3%s", PlayerNames, PlayerName(players[i]));
- }
- }
- else
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,0%s", PlayerNames, PlayerName(players[i]));
- }
- }
- }
- format(string, sizeof(string), "6Connected Players[%d]:1,0%s", counter, PlayerNames);
- ircSay(BotSwitcher(), channel, string);
- }
- else
- {
- if(counter > 30 && counter < 61)
- {
- for(new i=0; i<=30; i++)
- {
- if(IsPlayerConnected(players[i]))
- {
- if(pData[players[i]][pAdmin] > 0)
- {
- if(pData[players[i]][pAdmin] == 1 || pData[players[i]][pAdmin] == 2)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,7%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 3 || pData[players[i]][pAdmin] == 4)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,8%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 5)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,3%s", PlayerNames, PlayerName(players[i]));
- }
- }
- else
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,0%s", PlayerNames, PlayerName(players[i]));
- }
- }
- }
- format(string, sizeof(string), "6Connected Players[%d]:1,0 %s", counter, PlayerNames);
- ircSay(BotSwitcher(), channel, string);
- for(new i=31; i<=60; i++)
- {
- if(IsPlayerConnected(players[i]))
- {
- if(pData[players[i]][pAdmin] > 0)
- {
- if(pData[players[i]][pAdmin] == 1 || pData[players[i]][pAdmin] == 2)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,7%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 3 || pData[players[i]][pAdmin] == 4)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,8%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 5)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,3%s", PlayerNames, PlayerName(players[i]));
- }
- }
- else
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,0%s", PlayerNames, PlayerName(players[i]));
- }
- }
- }
- format(string, sizeof(string), "1,0 %s", PlayerNames);
- ircSay(BotSwitcher(), channel, string);
- }
- else if(counter > 60)
- {
- for(new i=0; i<=30; i++)
- {
- if(IsPlayerConnected(players[i]))
- {
- if(pData[players[i]][pAdmin] > 0)
- {
- if(pData[players[i]][pAdmin] == 1 || pData[players[i]][pAdmin] == 2)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,7%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 3 || pData[players[i]][pAdmin] == 4)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,8%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 5)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,3%s", PlayerNames, PlayerName(players[i]));
- }
- }
- else
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,0%s", PlayerNames, PlayerName(players[i]));
- }
- }
- }
- format(string, sizeof(string), "6Connected Players[%d]:1,0 %s", counter, PlayerNames);
- ircSay(BotSwitcher(), channel, string);
- for(new i=31; i<=60; i++)
- {
- if(IsPlayerConnected(players[i]))
- {
- if(pData[players[i]][pAdmin] > 0)
- {
- if(pData[players[i]][pAdmin] == 1 || pData[players[i]][pAdmin] == 2)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,7%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 3 || pData[players[i]][pAdmin] == 4)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,8%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 5)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,3%s", PlayerNames, PlayerName(players[i]));
- }
- }
- else
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,0%s", PlayerNames, PlayerName(players[i]));
- }
- }
- }
- format(string, sizeof(string), "1,0 %s", PlayerNames);
- ircSay(BotSwitcher(), channel, string);
- for(new i=61; i<=counter; i++)
- {
- if(IsPlayerConnected(players[i]))
- {
- if(pData[players[i]][pAdmin] > 0)
- {
- if(pData[players[i]][pAdmin] == 1 || pData[players[i]][pAdmin] == 2)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,7%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 3 || pData[players[i]][pAdmin] == 4)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,8%s", PlayerNames, PlayerName(players[i]));
- }
- else if(pData[players[i]][pAdmin] == 5)
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,3%s", PlayerNames, PlayerName(players[i]));
- }
- }
- else
- {
- format(PlayerNames, sizeof(PlayerNames),"%s 1,0%s", PlayerNames, PlayerName(players[i]));
- }
- }
- }
- format(string, sizeof(string), "1,0 %s", PlayerNames);
- ircSay(BotSwitcher(), channel, string);
- }
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement