Try this modified one:
on *:START:{
echo -s -----
echo -s HEF (Universal Public Version) LastManStanding Module $hef.lms.version by Greg
echo -s ---
echo -s -
echo -s Status - Successfully Loaded.
echo -s -
}
alias hef.startlms {
var %i = 1
set %lmslock = 1
if ($hget(lms, 0).item <= 1) {
WSV.say ** LastManStanding has Rejected. Reason: Not enough Players
if ($hget(lms, 0).item == 1) {
WSV.setcontrols $WSV.getid($hget(lms, 1).item) 1
WSV.setarmour $WSV.getid($hget(lms, 1).item) 0
}
hfree lms
unset %lms
unset %lmslock
!halt
}
else {
.timerann $+ 1 1 2 hef.annlms $1 ~h~-- GET READY! --
.timerann $+ 2 1 5 hef.annlms $1 -- 3 --
.timerann $+ 3 1 6 hef.annlms $1 ~y~-- 2 --
.timerann $+ 4 1 7 hef.annlms $1 ~y~-- 1 --
.timerann $+ 5 1 9 hef.annlms $1 ~t~-- FIGHT! --
.timerrestcontlms 1 8 hef.restcontlms $1
}
}
alias hef.lms.version !return v1.0
alias hef.annlms {
var %i = 1
while ($hget(lms, %i).item != $null) {
WSV.announce $WSV.getid($hget(lms, %i).item) $2-
inc %i
}
}
alias hef.restcontlms {
var %i = 1
while ($hget(lms, %i).item != $null) {
WSV.setcontrols $WSV.getid($hget(lms, %i).item) 1
inc %i
}
}
on *:signal:WSV.commands: {
if ($3 == lms) {
if (%lms == on) || ($hget(lms, 0).item != 0) {
WSV.msg $2 Error - LastManStanding is Already in Progress!
}
else {
hmake lms
set %lms on
timer 1 1 WSV.say ** LastManStanding has Started! To Join, type !join Within 20 Seconds.
timer 1 20 hef.startlms
}
}
elseif ($3 == join) {
if (!%lms) WSV.msg $2 Error - LastManStanding is not Active!
elseif ($hget(lms, $WSV.name($2)) != $null) WSV.msg $2 Error - You Already joined LastManStanding.
elseif (%lmslock) WSV.msg $2 Error - You Must Wait Until this Round of LMS Ends.
else {
hadd -m lms $WSV.name( $2) 1
WSV.say ** $WSV.name($2) has joined LastManStanding!
WSV.msg $2 Taking you to LastManStanding. Enjoy!
WSV.setlocation $2 -754.187866 -1602.638916 23.734970
WSV.setcontrols $2 0
WSV.setarmour $2 100
WSV.sethealth $2 100
}
}
}
on *:SIGNAL:WSV.kill {
if ($hget(lms, 0).item != 0) {
if ($hget(lms, 0).item == 2) && ($hget(lms, $WSV.name($2)) != $null) {
hdel lms $WSV.name($2)
if ($hget(lms, 1).item == $null) {
WSV.say ** LastManStanding has Ended. Winner: No Winner
}
else {
WSV.say ** LastManStanding has Ended. Winner: $hget(lms, 1).item
WSV.announce $WSV.getid($hget(lms, 1).item) ~h~ $chr(32) $+ congratulations! ~t~you won lastmanstandig!
}
hfree lms
unset %lms
unset %lmslock
}
elseif ($hget(lms, 0).item >= 3) hdel lms $WSV.name($2)
}
}
on *:SIGNAL:WSV.part: {
if ($hget(lms, 0).item != 0) {
if ($hget(lms, 0).item == 2) && ($hget(lms, $WSV.name($2)) != $null) {
hdel lms $WSV.name($2)
if ($hget(lms, 1).item == $null) {
WSV.say ** LastManStanding has Ended. Winner: No Winner
}
else {
WSV.say ** LastManStanding has Ended. Winner: $hget(lms, 1).item
WSV.announce $WSV.getid($hget(lms, 1).item) ~h~ $chr(32) $+ congratulations! ~t~you won lastmanstandig!
}
hfree lms
unset %lms
unset %lmslock
}
elseif ($hget(lms, 0).item >= 3) hdel lms $WSV.name($2)
}
}