Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local antispam = false
- local time = 1
- local isChatOpen = false
- hook.Add( "HUDPaint", "open_Emotes", function()
- if vgui.CursorVisible() then return end
- if input.IsKeyDown(KEY_G) and antispam == false then
- antispam = false
- toggle = draw.DrawText( "|| Wähle eine Aktion!", "TargetID", ScrW() * 0.1, ScrH() * 0.25, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- toggle = draw.DrawText( "|| 1 - Winken", "TargetID", ScrW() * 0.1, ScrH() * 0.265, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- toggle = draw.DrawText( "|| 2 - Lachen", "TargetID", ScrW() * 0.1, ScrH() * 0.28, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- toggle = draw.DrawText( "|| 3 - Zustimmen", "TargetID", ScrW() * 0.1, ScrH() * 0.295, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- toggle = draw.DrawText( "|| 4 - Ablehnen", "TargetID", ScrW() * 0.1, ScrH() * 0.31, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- toggle = draw.DrawText( "|| 5 - Herbeiwinken", "TargetID", ScrW() * 0.1, ScrH() * 0.325, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- toggle = draw.DrawText( "'G' gedrückt halten und Taste des Emotes drücken", "TargetID", ScrW() * 0.07, ScrH() * 0.34, Color( 255, 255, 255, 255 ), TEXT_ALIGN_LEFT)
- end
- if input.IsKeyDown(KEY_1) and antispam == false then
- antispam = true
- LocalPlayer():ConCommand( "_DarkRP_DoAnimation 1615", Winken)
- end
- if input.IsKeyDown(KEY_2) and antispam == false then
- antispam = true
- LocalPlayer():ConCommand( "_DarkRP_DoAnimation 1618", Lachen)
- end
- if input.IsKeyDown(KEY_3) and antispam == false then
- antispam = true
- LocalPlayer():ConCommand( "_DarkRP_DoAnimation 1610", Zustimmen)
- end
- if input.IsKeyDown(KEY_4) and antispam == false then
- antispam = true
- LocalPlayer():ConCommand( "_DarkRP_DoAnimation 1613", Ablehnen)
- end
- if input.IsKeyDown(KEY_5) and antispam == false then
- antispam = true
- LocalPlayer():ConCommand( "_DarkRP_DoAnimation 1611", Herbeiwinken)
- end
- timer.Simple(time, function()
- antispam = false
- end)
- end)
Advertisement
Add Comment
Please, Sign In to add comment