• Welcome to Vice City Multiplayer.
 

WSV

Started by gamyster, October 15, 2008, 11:11:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gamyster

WSV
hey can anyone Convert WSV 0.3 !ADMIN cmd to !admin cmd like LW..In the WSV 0.3 script the COMMENT CMD:-   

Quoteelseif (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


Quoteelseif (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:-

Quoteelseif (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
  }


Founder of [SAF]Clan

evil_night13

whats actually that u want? ???

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

Punjabi

Yes both are working perfectly..... ;D ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

gamyster

i typed !addnews blablablablabal hello man how are you lolz.still it says that add more than 5 words
Founder of [SAF]Clan

evil_night13

Quote from: gamyster on October 15, 2008, 02:50:19 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