Gabriel_Duarte

Untitled

Jul 30th, 2011
283
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1.     new text0[256];
  2.     new text1 = 0;
  3.     new text2[256];
  4.  
  5.     for(new i = 0; strlen(text) > i; i++)
  6.     {
  7.         if(text[i] > 64 && text[i] < 91)
  8.         {
  9.             text2[i] = text[i] + 32;
  10.             text1++;
  11.         } else {
  12.             text2[i] = text[i];
  13.         }
  14.     }
  15.  
  16.     if(floatround(strlen(text)/ 2.0) < text1)
  17.     {
  18.     format(text0, 256, "(%d): %s", playerid, text2);
  19.     }
  20.     else format(text0, 256, "(id:%d): %s", playerid, text);
  21.     SendPlayerMessageToAll(playerid, text0);
Advertisement
Add Comment
Please, Sign In to add comment