23 Feb 11, 09:02AM
(This post was last modified: 23 Feb 11, 09:03AM by DeafieGamer.)
(21 Aug 10, 09:37AM)Kirin Wrote: i think that now it's a good idea to add this command:
[SELECT ALL] Code:addtimedloop [millisecs] [alias]
what do u think guys?
GJ Bukz :)
btw bukz
u can do conline [ ]
to avoid the spam and this way your scripts will become much more efficient.
EDIT: took time to do it properly:
[SELECT ALL] Code://on Tk message script by Bukz. little mod by kirin.
if (! (strstr $mapstartalways tkchk)) [add2alias mapstartalways [sleep 1000 [tkchk]]] []
if (checkalias srymsg) [] [srymsg = "Sorry Mate :("]
tkchk = [
if (= $connected 1) [ // Only apoligize to real people :p
if (strstr $conline "you fragged teammate ") [say (concatword % $srymsg);conline [ ]] []
if (strstr $conline "you gibbed teammate ") [say (concatword % $srymsg);conline [ ]] []
if (strstr $conline "you splattered teammate ") [say (concatword % $srymsg);conline [ ]] []
if (strstr $conline "you knifed teammate ") [say (concatword % $srymsg);conline [ ]] []
if (strstr $conline "you headshotted teammate ") [say (concatword % $srymsg);conline [ ]] []
]
sleep 1 [tkchk]
]
newmenu "sorrymsg"
menuitemtextinput "message on TeamKill: " "result $srymsg" "srymsg = $arg1"
much simpler and efficient dont ya think?
also i fixed a bug that launched your script repeatdly after rerunning AC
mapstartalways was getting accumulated.
and i added a default for srymsg.
EDIT..
fixed another bug for those who call themselfes "teammate"
Supposed you want to kick the teamkiller with score of -5 or below?