its possible to filp the text on the chat automaticly ?
like when you type somthing in the chat its automaticly flip
like when i type " hello " it filps to "olleh"
and thanks !
[CODE]hook.Add("PlayerSay", "reversetext", function(ply, text, team)
if reverse then
return string.reverse(text)
end
end)
[/CODE]
[editline]9th July 2015[/editline]
You could make a command or something that would set reverse to true or make reverse a table and put on it the players you want its text to be reversed, by changing
[CODE]if reversed then[/CODE]
by
[CODE]if reversed[ply] then[/CODE]
And creating the table before
[code]
function reversetext( ply, text, public )
if (string.sub(text, 1,5) == "hello") then--if the first 5 letters are hello continue
return string.reverse(text)
end
end
hook.Add( "PlayerSay", "reversetext", reversetext );
[/code]
thats an example if you only want one word to be reversed
no i want everything i type it it reversed
[code]
function reversetext( player, text, public )
if player:SteamID() == "STEAM_0:1:1111111" then -- put your steamid
return string.reverse(text)
end
end
hook.Add( "PlayerSay", "reversetext", reversetext );
[/code]
there replace your steam id and everything you type will become reversed
Sorry, you need to Log In to post a reply to this thread.