hey can anyone Convert WSV 0.3 !ADMIN cmd to !admin cmd like LW..In the WSV 0.3 script the COMMENT CMD:-
elseif (comment* iswm $3) {
if ($8) {
write " $+ $scriptdir $+ Comments.txt $+ " $date $time < $+ $WSV.name($2) $+ > $4-
WSV.msg $2 " $+ $4- $+ " has been added.
}
elseif (!$4) WSV.msg $2 $read(" $+ $scriptdir $+ Comments.txt $+ ")
else WSV.msg $2 Comments have to be longer than 4 words!
}
AND THE !addnews cmd
elseif (addnews* iswm $3) {
WSV.cmdlevelcheck $1-
if ($9) {
write " $+ $scriptdir $+ News.txt $+ " NEWS: < $+ $WSV.name($2) $+ > $4-
WSV.msg $2 " $+ $4- $+ " has been added.
echo.msg 3News added by $WSV.name($2) $+ :3 $4-
}
else WSV.msg $2 News have to be longer than 5 words!
}
These Both comment and addnews aint working
!admin cmd of WSV0.3 is this:-
elseif (admin* iswm $3) {
var %a = 0
while (%a <= %maxplayers) {
if ($WSV.levels(%a) > 0) && ($WSV.loggedin(%a)) {
if (%b) var %b = %b , $WSV.name(%a) $+ ( $+ $WSV.levels(%a)) $+ )
elseif (!%b) var %b = $WSV.name(%a) $+ ( $+ $WSV.levels(%a) $+ )
}
inc %a
}
if (%b) WSV.say > Admins Online: %b
else WSV.say > No Admins Are Currently Online
}