local russian_characters = { [168] = '¨', [184] = '¸', [192] = 'À', [193] = 'Á', [194] = 'Â', [195] = 'Ã', [196] = 'Ä', [197] = 'Å', [198] = 'Æ', [199] = 'Ç', [200] = 'È', [201] = 'É', [202] = 'Ê', [203] = 'Ë', [204] = 'Ì', [205] = 'Í', [206] = 'Î', [207] = 'Ï', [208] = 'Ð', [209] = 'Ñ', [210] = 'Ò', [211] = 'Ó', [212] = 'Ô', [213] = 'Õ', [214] = 'Ö', [215] = '×', [216] = 'Ø', [217] = 'Ù', [218] = 'Ú', [219] = 'Û', [220] = 'Ü', [221] = 'Ý', [222] = 'Þ', [223] = 'ß', [224] = 'à', [225] = 'á', [226] = 'â', [227] = 'ã', [228] = 'ä', [229] = 'å', [230] = 'æ', [231] = 'ç', [232] = 'è', [233] = 'é', [234] = 'ê', [235] = 'ë', [236] = 'ì', [237] = 'í', [238] = 'î', [239] = 'ï', [240] = 'ð', [241] = 'ñ', [242] = 'ò', [243] = 'ó', [244] = 'ô', [245] = 'õ', [246] = 'ö', [247] = '÷', [248] = 'ø', [249] = 'ù', [250] = 'ú', [251] = 'û', [252] = 'ü', [253] = 'ý', [254] = 'þ', [255] = 'ÿ', } function string.rupper(s) s = s:upper() local strlen = s:len() if strlen == 0 then return s end local output = '' for i = 1, strlen do local ch = s:byte(i) if ch >= 224 and ch <= 255 then -- lower russian characters output = output .. russian_characters[ch - 32] elseif ch == 184 then -- ¸ output = output .. russian_characters[168] else output = output .. string.char(ch) end end return output end local sampev = require('lib.samp.events') sampev.onServerMessage = function(color, text) if text:find('Connected') or text:find('ïîäêëþ÷èëñÿ') then sampAddChatMessage('{FAB907}ChatHelp {00FF00}True {FFFFFF}Loaded!', -1) sampAddChatMessage('{FFFFFF}Author: {FAB907}ROAshnisa51', -1) end end sampev.onSendChat = function(text) local n = text:sub(1, 1):rupper() .. text:sub(2, #text) local last_char = n:sub(-1) if last_char == '.' or last_char == '!' or last_char == '?' then return {n} else return {n .. '.'} end end