Author Topic: WSV  (Read 3656 times)

0 Members and 1 Guest are viewing this topic.

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
WSV
« on: October 15, 2008, 01:11:21 pm »
hey can anyone Convert WSV 0.3 !ADMIN cmd to !admin cmd like LW..In the WSV 0.3 script the COMMENT CMD:-   

Quote
  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


Quote
    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:-

Quote
  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
  }


« Last Edit: October 15, 2008, 01:29:31 pm by gamyster »
Founder of [SAF]Clan

Offline evil_night13

  • Wiseguy
  • **
  • Posts: 61
  • i are a normal person like you
    • View Profile
    • web hosting
Re: WSV
« Reply #1 on: October 15, 2008, 03:04:41 pm »
whats actually that u want? ???

iam using WSV0.3 , both the commands r working perfectly  :P

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: WSV
« Reply #2 on: October 15, 2008, 03:06:03 pm »
Yes both are working perfectly..... ;D ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline gamyster

  • Wiseguy
  • **
  • Posts: 61
    • View Profile
Re: WSV
« Reply #3 on: October 15, 2008, 04:50:19 pm »
i typed !addnews blablablablabal hello man how are you lolz.still it says that add more than 5 words
Founder of [SAF]Clan

Offline evil_night13

  • Wiseguy
  • **
  • Posts: 61
  • i are a normal person like you
    • View Profile
    • web hosting
Re: WSV
« Reply #4 on: October 15, 2008, 06:50:58 pm »
i typed !addnews blablablablabal hello man how are you lolz.still it says that add more than 5 words

i added the same news, it added! :D