Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func_sendBigMessage_toAll(color, message[])
- {
- new len = strlen(message),
- _iL = len / MAX_CHARS_PER_LINE;
- if( ( len % MAX_CHARS_PER_LINE ) ) _iL++;
- new _Line[MAX_CHARS_PER_LINE + 15];
- new _:_i@Index;
- while( _i@Index < _iL )
- {
- if( _i@Index == 0 )
- strmid( _Line, message, ( _i@Index * MAX_CHARS_PER_LINE ), ( _i@Index * MAX_CHARS_PER_LINE ) + MAX_CHARS_PER_LINE );
- else
- strmid( _Line, message, ( _i@Index * MAX_CHARS_PER_LINE ), ( _i@Index * MAX_CHARS_PER_LINE ) + MAX_CHARS_PER_LINE );
- #if defined FINAL_DOTS
- if( _iL > 1 )
- {
- if( _i@Index == 0 )
- {
- format( _Line, sizeof _Line, ""W"%s >>", _Line );
- }
- else if( _i@Index > 0 && ( _i@Index + 1 ) < _iL )
- {
- format( _Line, sizeof _Line, ""W">> %s >>", _Line );
- }
- else
- {
- format( _Line, sizeof _Line, ""W">> %s", _Line );
- }
- }
- #endif
- SendClientMessageToAll(color, _Line );
- _i@Index++;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement