Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new text0[256];
- new text1 = 0;
- new text2[256];
- for(new i = 0; strlen(text) > i; i++)
- {
- if(text[i] > 64 && text[i] < 91)
- {
- text2[i] = text[i] + 32;
- text1++;
- } else {
- text2[i] = text[i];
- }
- }
- if(floatround(strlen(text)/ 2.0) < text1)
- {
- format(text0, 256, "(%d): %s", playerid, text2);
- }
- else format(text0, 256, "(id:%d): %s", playerid, text);
- SendPlayerMessageToAll(playerid, text0);
Advertisement
Add Comment
Please, Sign In to add comment