Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: gamyster on October 15, 2008, 12:11:21 PM

Title: WSV
Post by: gamyster on October 15, 2008, 12: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:-   

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
  }


Title: Re: WSV
Post by: evil_night13 on October 15, 2008, 02:04:41 PM
whats actually that u want? ???

iam using WSV0.3 , both the commands r working perfectly  :P
Title: Re: WSV
Post by: Punjabi on October 15, 2008, 02:06:03 PM
Yes both are working perfectly..... ;D ;D
Title: Re: WSV
Post by: gamyster on October 15, 2008, 03:50:19 PM
i typed !addnews blablablablabal hello man how are you lolz.still it says that add more than 5 words
Title: Re: WSV
Post by: evil_night13 on October 15, 2008, 05:50:58 PM
Quote from: gamyster on October 15, 2008, 03: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