IRCCMD
#4

well i optimized it a bit, but i am pretty sure those errors arent from this cmd:

PHP код:
IRCCMD:admins(botidchannel[], user[], host[], params[]) 

   new 
IsOnline 0
   new 
wordss[128]; 
   foreach(
Playeri
   { 
        if (
pData[i][Admin] >= 3
        { 
            
format(wordsssizeof(wordss),  "9,2 Admin %s (ID: %d) [Level %d]\n",GetName(i), ipData[i][Admin]); 
            
IsOnline++; 
            
IRC_GroupSay(groupIDIRC_CHANNELwordss); 
        } 
   } 
   if (
IsOnline == 0
   
IRC_GroupSay(groupIDIRC_CHANNEL"No admins are online!"); 
   else 
    { 
        
format(wordsssizeof(wordss), "11,2 %d RightX Admin Online",IsOnline); 
        
IRC_GroupSay(groupIDIRC_CHANNELwordss); 
        new 
msg99[128]; 
        
format(msg99sizeof(msg99), "*Online Admins Player List Requested by %s ~ Total %d"userIsOnline); 
        
SendClientMessageToAll(0xFFB400FFmsg99); 
        
format(msg99sizeof(msg99), "0,10 *Online Admins List Requested by %s ~ Total %d",user,IsOnline); 
        
IRC_GroupSay(groupIDIRC_CHANNELmsg99); 
    } 
   return 
1

Reply


Messages In This Thread
IRCCMD - by Loinal - 01.01.2017, 14:57
Re: IRCCMD - by iLearner - 01.01.2017, 15:13
Re: IRCCMD - by Loinal - 01.01.2017, 15:18
Re: IRCCMD - by iLearner - 01.01.2017, 15:32
Re: IRCCMD - by Loinal - 01.01.2017, 15:38
Re: IRCCMD - by Sjn - 01.01.2017, 16:09
Re: IRCCMD - by itsCody - 01.01.2017, 22:16
Re: IRCCMD - by Loinal - 02.01.2017, 05:56

Forum Jump:


Users browsing this thread: 1 Guest(s)