local list = {'слово1', 'пук', 'слово2'}
if not isStringInTable('пук', list) then
table.insert(list, 'пук')
else
sampAddChatMessage('"Пук" уже есть в таблице', -1)
end
function isStringInTable(string, tbl)
for i = 1, #tbl do
if tbl[i] == string then
return true
end
end
return false
end