View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 03-14-2017 , 16:59   Re: [INC] CromChat
Reply With Quote #2

If we are on this let's break that horrible design which is present in almost every colorchat. Have a custom function to send the message and separat the single-player case from the array so you don't have to call is_user_connected for nothing.

PHP Code:
if(id)
{
    
SendMessage()
}
else
{
    
get_players(iPlayersiCount"ch")
    
    if(!
iCount)
        return

    
loop
    
{
        
SendMessage
    
}


__________________

Last edited by HamletEagle; 03-14-2017 at 17:00.
HamletEagle is offline