• Welcome to Vice City Multiplayer.
 

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

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

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Daniel95

Quote from: thijn on March 16, 2009, 08:39:54 PM
Quote from: Daniel95 on March 16, 2009, 02:32:44 PM
Quote from: thijn on March 15, 2009, 08: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

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

thijn

Just with ur normal commands, And don't forget to reload the script.


Daniel95

Quote from: Amenine on March 14, 2009, 08:03:34 PM
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

thijn



Daniel95

<@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

[XT]ariel[X]

#21
lol
the commands Heal and Chaleco

Heal Scripts..
   elseif ($3 == heal) {  
     WSV.say Recargando Vida...
     WSV.sethealth $2 100
   }

Chaleco Scripts..
   elseif ($3 == chaleco) {  
     WSV.say Recargando Chaleco...
     WSV.setarmour $2 100
   }
Clic in image from enter in my web :D

thijn



[XT]ariel[X]

Clic in image from enter in my web :D