Gema Script
To use:
/gema (mapnamehere)
when you score your first flag it will say the seconds it took you to do that map.
In addition it will save the high score for that map (in seconds) under (mapname)_g. To view a highscore, you must type
Anyways, here's the script itself:
To use:
/gema (mapnamehere)
when you score your first flag it will say the seconds it took you to do that map.
In addition it will save the high score for that map (in seconds) under (mapname)_g. To view a highscore, you must type
[SELECT ALL] Code:
/echo (mapname)_g
Anyways, here's the script itself:
[SELECT ALL] Code:
//gema script v1.1 by sblargish
//thanks to bukz for helping saving of highscores
//thanks to v-man for the timer script below
delalias swst
alias stopwatch [
if (strcmp $arg1 "start") [alias swst (millis)] [
if (strcmp $arg1 "time") [if (checkalias swst) [echo (- (millis) $swst)] [stopwatch isn't running!]] [
if (strcmp $arg1 "clear") [delalias swst] []]]]
//v-man's timer script above
alias gema-on 0
add2conloop [if_conline_has "you scored" [if (= $gema-on 1) [seconds (- (millis) $swst)]]]
alias ghiscore [
echo (c 2)That is a new HIGH SCORE!]
alias gemascores [
if (checkalias (concatword (curmap 1) _g)) [if (<= $arg1 (getalias (concatword (curmap 1) _g))) [alias (concatword (curmap 1) _g) $arg1 ; ghiscore]] [alias (concatword (curmap 1) _g) $arg1; ghiscore]
]
alias seconds [
blarg = (divf $arg1 1000)
scoresys $blarg]
alias scoresys [
echo (c 2)You finished in (c 1)$arg1 (c 2)seconds on map (c 1)$gmap
stopwatch score
stopwatch clear
gema-on = 0
gemascores]
alias gema [
gema-on = 1
stopwatch clear
ctf $arg1
gmap = $arg1
stopwatch start]