Advertisement
ItzLolzy

Red Valve

Apr 18th, 2019
366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. local get_local_player = entity.get_local_player
  2. local entity_get_prop = entity.get_prop
  3. local client_set_clan_tag = client.set_clan_tag
  4. local oldTick = globals.tickcount()
  5. local TwinTower_enabled = ui.new_checkbox("MISC", "Miscellaneous", "Red Valve Tag")
  6. local TwinTowerClantag = {" \x01\x0B\x02[VALV\xE1\xB4\xB1]\x01", " "}
  7. local cur = 1
  8.  
  9. local function get_twint(e)
  10. if (ui.get(TwinTower_enabled)) then
  11. if globals.tickcount() - oldTick > 55 then
  12. cur = math.floor(globals.curtime() % 1 + 1)
  13. client_set_clan_tag(TwinTowerClantag[cur])
  14. oldTick = globals.tickcount()
  15. end
  16. end
  17. end
  18. client.set_event_callback("player_connect_full", function(e)
  19. oldTick = globals.tickcount()
  20. end)
  21. client.set_event_callback("paint", get_twint)
  22.  
  23. client.set_event_callback("setup_command", on_setup_command)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement