FlushPizzaOrders( ) { for( new i; i < MAX_PLAYERS; i++ ) { if ( IsPlayerConnected( i ) && Pizza[ PizzaCouriers ][ i ] > 0 ) { for ( new o; o < PizzaOrdersMax; o++ ) { new playerid = PizzaOrders[ o ][ oPlayerID ]; if ( playerid >= 0 && IsPlayerConnected( playerid ) ) { if ( PizzaOrders[ o ][ oHandledBy ] == -1 || !IsPlayerConnected( PizzaOrders[ o ][ oHandledBy ] ) ) { if ( Pizza[ PizzaCouriers ][ i ] == 1 ) { PizzaOrders[ o ][ oHandledBy ] = i; Pizza[ PizzaCouriers ][ i ] = 2; new string[ 256 ]; format( string , sizeof( string ) , "Deliver next order to: %s" , PlayerName( playerid ) ); SendMsg( i , string ); } } } } } } }