Advertisement
RaZgRiZ

quick spec binds

Oct 7th, 2012
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.72 KB | None | 0 0
  1. bindtoggle = [
  2.     if $numargs [
  3.         a = [toggle_@arg1 = 1 ; onrelease [toggle_@@arg1 = 0]]
  4.         t = (at ["" "edit" "spec"] $arg2)
  5.         d = ((concatword get $t bind) $arg1)
  6.        
  7.         if (< (strstr $d $a) 0) [
  8.             (concatword $t bind) $arg1 [
  9.                 @d
  10.                 @a
  11.             ]
  12.         ]
  13.     ]
  14. ]
  15.  
  16. iskeypressed = [getalias [toggle_@arg1]]
  17.  
  18. bindtoggle LCTRL 0
  19. specbind K [if (&& [ismaster (getclientnum)] [> (getfollow) -1] [iskeypressed LCTRL]) [kick (getfollow)]]
  20. specbind S [if (&& [ismaster (getclientnum)] [> (getfollow) -1] [iskeypressed LCTRL]) [spectator 1 (getfollow)] [backward]]
  21. specbind T [if (&& [ismaster (getclientnum)] [> (getfollow) -1] [iskeypressed LCTRL]) [setteam (getfollow) (? (=s (getclientteam (getfollow)) good) evil good)] [saycommand]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement