SHARE
TWEET

Untitled

mironovdga May 21st, 2019 76 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. func_sendBigMessage_toAll(color, message[])
  2. {
  3.     new len = strlen(message),
  4.         _iL = len / MAX_CHARS_PER_LINE;
  5.  
  6.     if( ( len % MAX_CHARS_PER_LINE ) ) _iL++;
  7.     new _Line[MAX_CHARS_PER_LINE + 15];
  8.  
  9.     new _:_i@Index;
  10.     while( _i@Index < _iL )
  11.     {
  12.         if( _i@Index == 0 )
  13.             strmid( _Line, message, ( _i@Index * MAX_CHARS_PER_LINE ), ( _i@Index * MAX_CHARS_PER_LINE ) + MAX_CHARS_PER_LINE );
  14.         else
  15.             strmid( _Line, message, ( _i@Index * MAX_CHARS_PER_LINE ), ( _i@Index * MAX_CHARS_PER_LINE ) + MAX_CHARS_PER_LINE );
  16.  
  17.         #if defined FINAL_DOTS
  18.         if( _iL > 1 )
  19.         {
  20.             if( _i@Index == 0 )
  21.             {
  22.                 format( _Line, sizeof _Line, ""W"%s >>", _Line );
  23.             }
  24.             else if( _i@Index > 0 && ( _i@Index + 1 ) < _iL )
  25.             {
  26.                 format( _Line, sizeof _Line, ""W">> %s >>", _Line );
  27.             }
  28.             else
  29.             {
  30.                 format( _Line, sizeof _Line, ""W">> %s", _Line );
  31.             }
  32.         }
  33.         #endif
  34.         SendClientMessageToAll(color, _Line );
  35.         _i@Index++;
  36.     }
  37.     return true;
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top