• Welcome to Vice City Multiplayer.
 

Add 3 simple commands (i think) to WSVv0.3

Started by Daniel95, March 10, 2009, 06:22:21 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daniel95

How i can add the commands:
!hunt !getall and !healall to the WSV scripts?
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Daniel95

<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

[AoD]NC

Getall on FBS looks so:
  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:
    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.

Daniel95

Quote from: [AoD]NC on March 10, 2009, 01:36:38 PM
U need only to change this:
    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
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

[AoD]NC

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:
if ($WSV.levels($4) > 1)

So it should be:
  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 ;).

Daniel95

I cant put it jsut in the scripter editor? :P ??? ::)
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk