Author Topic: Add 2 commands to WSVv0.3 (if its spam i really soory)  (Read 11017 times)

0 Members and 1 Guest are viewing this topic.

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #15 on: March 17, 2009, 03:40:23 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

I say agin...no errors its only say inavalid command.  :'(
So if its the wrong code so what is the true one and where i need to put it?  ???
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #16 on: March 17, 2009, 05:16:52 pm »
Just with ur normal commands, And don't forget to reload the script.

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #17 on: March 17, 2009, 09:57:39 pm »
Code: [Select]
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!
    }

I put this into the scripter editor (where is all my commands for WSV)
And after that restart the scripts?
Or need to reload the the scripts?
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #18 on: March 17, 2009, 11:18:54 pm »
reload is enough

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #19 on: March 18, 2009, 03:38:01 pm »
reload is enough

OK thanks for helping  :D ;) :)
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline Daniel95

  • Made Man
  • ***
  • Posts: 120
  • NOU!!!!
    • View Profile
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #20 on: March 18, 2009, 04:28:14 pm »
Steal not work  :-\ :'(
<@Foxtrot> halooo
<@Foxtrot> darfeh any cw's?
* Desert_Eagle is now known as darfeh
<@darfeh> idk

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #21 on: September 06, 2009, 07:15:24 am »
lol
the commands Heal and Chaleco

Heal Scripts..
Code: [Select]
   elseif ($3 == heal) {  
      WSV.say Recargando Vida...
      WSV.sethealth $2 100
    }
Chaleco Scripts..
Code: [Select]
   elseif ($3 == chaleco) {  
      WSV.say Recargando Chaleco...
      WSV.setarmour $2 100
    }
« Last Edit: October 17, 2009, 03:21:23 pm by [XT]ariel[X] »
Clic in image from enter in my web :D

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #22 on: September 06, 2009, 07:19:50 pm »
eeh spam?

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Add 2 commands to WSVv0.3 (if its spam i really soory)
« Reply #23 on: September 06, 2009, 09:51:09 pm »
no lol
Clic in image from enter in my web :D