• Welcome to Vice City Multiplayer.
 

Add 2 commands to WSVv0.3 (if its spam i really soory)

Started by Daniel95, March 13, 2009, 01:36:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daniel95

I was want say thanks to [AoD]NC for helping me did the !get all command its really work :)

I look at the fbs script and he have the !hunt and !heal all command too...
How i did it to wsv script?
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

[AoD]NC

;o ok :D.

Heal in FBS with the WSV only for admin level 2 looks so:
  elseif ($3 == healall) {
      if ($WSV.levels($4) > 1) vcmp.msg $1 $2 You need to be Admin level 2 or higher.
    else {
      vcmp.say $1 ** Admin $vcmp.name($1, $2) healed everyone in the server
      var %a = 0
      while (%a <= %limit) {
        vcmp.sethealth $1 %a 100   
        !inc %a
      }
    }
  }

You must look if WSV has an alias vcmp.sethealth and vcmp.name [open the script in Notepad, Find Text and type vcmp.sethealth search, and then search after vcmp.name]. If u didnt find anything, probably u must change the vcmp.sethealth and vcmp.name into WSV aliases. I don't know WSV, but maybe it would be WSV.sethealth and WSV.name.

thijn



Daniel95

OK thanks i will try it later... ;) :)
What about the: jail command?
Can help in this?
FBS have it too   :)
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

[AoD]NC

QuoteThat's right.
O ho hahaa i'm good  :D

Jail is simple. It's teleporting a player into a place and freezing him controls for f.e. 10 seconds.

FBS:
  elseif ($3 == jail) {
    if ($WSV.levels($4) > 4) wsv.msg $1 You need to be Admin level 5 or higher.
    elseif (!$4) wsv.msg $1 Error - Correct Syntax: /c $3 <Nick> <Reason>
    else {
      wsv.say ** Jailing player: $WSV.name($2) Reason: $5-
      WSV.setlocation $2 389.423 -507.512 9.396 0
      WSV.setcontrols $2 0
      timer 1 10 WSV.setcontrols $2 1
      timer 1 10 wsv.say ** Freeing $WSV.name($2) from jail
    }
  }


I don't know if i made this good :P. I used that $2 is the player name, if in WSV isn't $2 the player name, change it. And i don't know what with the reason for jailing.

Anyway the originally jail form FBS looks so:
  elseif ($3 == jail) {
    if ($FBS.lin($1, $2) == $null) vcmp.msg $1 $2 You must either register or be logged in as Admin Level 5.
    elseif ($FBS.Level($1, $2) < 5) vcmp.msg $1 $2 Error, You need to be at least level 5 to use this command.
    elseif (!$4) vcmp.msg $1 $2 Error - Correct Syntax: /c $3 <Nick/ ID> <Reason>
    elseif ($vcmp.name($1, $FBS.ID($4)) == Unknown) vcmp.msg $1 $2 Error: Invalid Nick-Name
    else {
      vcmp.say $1 ** Admin $vcmp.name($1, $2) jailed:[ $vcmp.name($1, $FBS.ID($4)) $chr(93) Reason:[ $iif($5-,$v1,None) $chr(93))
      vcmp.setlocation $1 $FBS.ID($4) 389.423 -507.512 9.396 0
      vcmp.setcontrols $1 $FBS.ID($4) 0
      timer 1 60 vcmp.setcontrols $1 $FBS.ID($4) 1
      timer 1 60 vcmp.say $1 ** Freeing $vcmp.name($1, $fbs.id($4)) from jail
    }
  }

Daniel95

#5
The healall and jail commands not work  :'( only the getall

You can write agin the code of the heealall and jail commands?
Maybe was some mistake  :-\
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Amenine

here try this..timer jail..
Usage !jail <player> <time/sec>..
Enjoy.../
elseif (jail* iswm $3) {
      if ($WSV.pconnected($4)) {
        if ($5) {
          if $WSV.levels($2) >= $WSV.levels($4) {
          WSV.cmdlevelcheck3 $1-
          WSV.say Admin $WSV.name($2) Jailed player: $chr(91) $WSV.name($4) $chr(93) For: $chr(91) $5- $chr(93) seconds.
          WSV.setlocation $WSV.id($4) 381.6198 -504.7959 9.3956
          WSV.setweapon $WSV.id($4) 0 1
          WSV.announce $WSV.id($4) You are ~o~jailed! ~u~for $5- seconds
          WSV.setcontrols $WSV.id($4) 0
          !.timer 1 $5- /WSV.setcontrols $WSV.id($4) 1
          !.timer 1 $5- /WSV.announce $WSV.id($4) Jailing over! you can go now
         }
         else WSV.msg $2 You can't jail someone who has higher level than you.
         }
         else WSV.msg $2 Please set the jailing time.
         }
         else WSV.msg $2 Player unavailable!
    }

Daniel95

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

thijn

What did u try to fix it??
I guess nothing,
Sorry, but i think u need to try fixing urself.
If it still wont work you can ask here, We are happy to help you ;)


Daniel95

Quote from: thijn on March 15, 2009, 04:20:55 PM
What did u try to fix it??
Sorry, but i think u need to try fixing urself.
If it still wont work you can ask here, We are happy to help you ;)

Its not gonna to work
This i copy to my scripter editor:

elseif ($3 == jail) {
  if ($WSV.levels($4) > 4) wsv.msg $1 You need to be Admin level 5 or higher.
  elseif (!$4) wsv.msg $1 Error - Correct Syntax: /c $3 <Nick> <Reason>
  else {
    wsv.say ** Jailing player: $WSV.name($2) Reason: $5-
    WSV.setlocation $2 389.423 -507.512 9.396 0
    WSV.setcontrols $2 0
    timer 1 10 WSV.setcontrols $2 1
    timer 1 10 wsv.say ** Freeing $WSV.name($2) from jail
  }
}

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

thijn



Daniel95

Quote from: thijn on March 15, 2009, 07:56:56 PM
What happens when u use it??

I go to the server type !jail and its write "invalid command"
I try this too with /c jail and its not work too  :'(
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

StriKe

Quote from: Daniel95 on March 16, 2009, 01:32:44 PM
Quote from: thijn on March 15, 2009, 07:56:56 PM
What happens when u use it??

I go to the server type !jail and its write "invalid command"
I try this too with /c jail and its not work too  :'(

Post what error you get in your status windows here
so other can help you out

Daniel95

No errors only then i put the command code and go to the server and type !jail and /c jail its wrote me invalid command  :-\ :P :'(
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

thijn

Quote from: Daniel95 on March 16, 2009, 01:32:44 PM
Quote from: thijn on March 15, 2009, 07:56:56 PM
What happens when u use it??

I go to the server type !jail and its write "invalid command"
I try this too with /c jail and its not work too  :'(
The only reasons I can guess:
1) U didnt add it on the right place
2) U made a mistake with the "elseif ($3 == jail) {"

And like strike said, please post any error messages in ur status window