Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: Daniel95 on March 10, 2009, 09:22:21 am

Title: Add 3 simple commands (i think) to WSVv0.3
Post by: Daniel95 on March 10, 2009, 09:22:21 am
How i can add the commands:
!hunt !getall and !healall to the WSV scripts?
Title: Re: Add 3 simple commands (i think) to WSVv0.3
Post by: Daniel95 on March 10, 2009, 03:49:15 pm
 :-\ not so undrestood it but i will try..
Title: Re: Add 3 simple commands (i think) to WSVv0.3
Post by: [AoD]NC on March 10, 2009, 04:36:38 pm
Getall on FBS looks so:
Code: [Select]
  elseif ($3 == getall) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command. 
    else {
      vcmp.say $1 ** Warping:[ All players $chr(93) to:[ $vcmp.name($1, $2) $chr(93)
      var %a = 0
      while (%a <= %limit) {
        if ($vcmp.name($1, %a) != $vcmp.name($1, $2)) {
          vcmp.setlocation $1 %a $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)   
          vcmp.msg $1 %a District:[ $+ $vcmp.area($1, $2) $+ $chr(93)
        }
        !inc %a
      }
    }
  }

I thought WSV is based on VRockers DLL, FBS is based on this too, so it should work noproblemo.

U need only to change this:
Code: [Select]
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command. 
Change it to a WSV admin rule [only for admins with level 2 or higher]. I think there are in WSV also commands that are only for admins.
Title: Re: Add 3 simple commands (i think) to WSVv0.3
Post by: Daniel95 on March 10, 2009, 05:24:48 pm
U need only to change this:
Code: [Select]
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 2.
    elseif ($FBS.Level($1, $2) < 2) vcmp.msg $1 $2 Error, You need to be at least level 2 to use this command. 
Change it to a WSV admin rule [only for admins with level 2 or higher]. I think there are in WSV also commands that are only for admins.

For what i need to change it? soory just i not undrestand in that nothing
Title: Re: Add 3 simple commands (i think) to WSVv0.3
Post by: [AoD]NC on March 10, 2009, 05:52:31 pm
U know: some commands are in only for admins. Search in the MRC file commands, that are only for admin [like kicking players]. At the start of the command will be a script like this from FBS.

Mmm, i downloaded WSV, huh....
This is the parameter:
Code: [Select]
if ($WSV.levels($4) > 1)
So it should be:
Code: [Select]
  elseif ($3 == getall) {
    if ($WSV.levels($4) > 1) vcmp.msg $1 $2 You need to be Admin level 2 or higher. 
    else {
      vcmp.say $1 ** Warping:[ All players $chr(93) to:[ $vcmp.name($1, $2) $chr(93)
      var %a = 0
      while (%a <= %limit) {
        if ($vcmp.name($1, %a) != $vcmp.name($1, $2)) {
          vcmp.setlocation $1 %a $calc($vcmp.location($1, $2).x + 2) $vcmp.location($1, $2).y $calc($vcmp.location($1, $2).z - 1.12)   
          vcmp.msg $1 %a District:[ $+ $vcmp.area($1, $2) $+ $chr(93)
        }
        !inc %a
      }
    }
  }
I dont know WSV very well. Maybe instead of f.e. vcmp.say u have wsv.say? U need them to rescript it ;).
Title: Re: Add 3 simple commands (i think) to WSVv0.3
Post by: Daniel95 on March 11, 2009, 09:26:26 am
I cant put it jsut in the scripter editor? :P ??? ::)