Ulysses
Ulysses Stuff => General Chat & Help and Support => Topic started by: awesomenessispure on September 05, 2014, 01:15:08 PM
-
Is there a way to add something in ulx like this so in ulx there is a "suicide" button I have been using this code!
hook.Add("OnPlayerChat", "!kill", function(player, text, TeamOnly, dead)
if text:lower():sub(1,4) == "!kill" then
if player == LocalPlayer() then
LocalPlayer():ConCommand("kill")
end
return true
end
end)
-
why?
-
bind <key_letter_you_want_to_use> kill
No lua needed.