Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.56 KB | None | 0 0
  1. stock SendSplitMessageToAll(color, text[]) {
  2.     new Length = strlen(text);
  3.  
  4.     if(Length > 130) {
  5.         new string_format_0[130 + 1], string_format_1[130];
  6.         new Break = 130;
  7.  
  8.         strmid(string_format_0, text, 0, Break);
  9.         strmid(string_format_1, text, Break, Length);
  10.  
  11.         SendClientMessageToAll(color, string_format_0);
  12.  
  13.         format(string_format_1, sizeof(string_format_1), "%s", string_format_1);
  14.         SendClientMessageToAll(color, string_format_1);
  15.     }
  16.     else {
  17.         SendClientMessageToAll(color, text);
  18.     }
  19.     return 1;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement