Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: gamyster on October 10, 2008, 02:30:00 PM

Title: WSV CMDS
Post by: gamyster on October 10, 2008, 02:30:00 PM
Can Someone post !engine on/off cmd
Title: Re: WSV CMDS
Post by: Tamas on October 10, 2008, 02:33:24 PM
Heres the code:

Quoteelseif (engineoff == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehicleengine $4 0
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) engine turned off
      else WSV.msg $2 This is not your vehicle!
    }
    elseif (engineon == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehicleengine $4 2
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.msg $2 Vehicle $chr(91) $WSV.vehiclename($4) $chr(93) engine turned on
      else WSV.msg $2 This is not your vehicle!
    }

But vcmp 0.3z does not support the engineon function correctly. Anyway you can turn it on again, by entering the vehicle.
Title: Re: WSV CMDS
Post by: gamyster on October 10, 2008, 04:41:54 PM
this aint working man it says this is not ur vehicle :( as i own that vehicle! so can u make without owning stuff i mean any new person who type !engineoff and on will work if he dont own the car
Title: Re: WSV CMDS
Post by: Punjabi on October 10, 2008, 04:58:47 PM
plz place it at right place so that ur brackets will close properly by other command ......... ;)

Cya
Punjabi_goli
Title: Re: WSV CMDS
Post by: gamyster on October 10, 2008, 05:27:50 PM
plz can u make without checking if he owns the car
Title: Re: WSV CMDS
Post by: Tamas on October 10, 2008, 08:53:19 PM
Done:

Quoteelseif (engineoff == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      WSV.setvehicleengine $4 0
      $WSV.vehiclename($4) $chr(93) engine turned off
    }
    elseif (engineon == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      WSV.setvehicleengine $4 2
      $WSV.vehiclename($4) $chr(93) engine turned on
    }
Title: Re: WSV CMDS
Post by: gamyster on October 11, 2008, 11:14:44 AM
THANK you its working
Title: Re: WSV CMDS
Post by: gamyster on October 12, 2008, 12:09:20 PM
But i saw in a server that when u type !engineon the player itself getout from car and get in in about 1 second!
Title: Re: WSV CMDS
Post by: Tamas on October 12, 2008, 12:48:50 PM
That is a really useless stuff
Title: Re: WSV CMDS
Post by: Punjabi on October 12, 2008, 02:06:25 PM
Its a bug ..... :o
Title: Re: WSV CMDS
Post by: [XT]ariel[X] on October 09, 2009, 01:20:40 AM
and alias for engineon not alias -.-!
Title: Re: WSV CMDS
Post by: thijn on October 09, 2009, 11:12:05 PM
[quote author=[XT]ariel[X] link=topic=829.msg10134#msg10134 date=1255044040]
and alias for engineon not alias -.-!
[/quote]
??? ??? What ??? ???
Title: Re: WSV CMDS
Post by: Mattz on October 10, 2009, 04:59:49 AM
I guess ariel wants to see alias <something> { blah }
Title: Re: WSV CMDS
Post by: [XT]ariel[X] on October 11, 2009, 07:18:18 PM
the scripts engineon and engineoff using alias not?
Title: Re: WSV CMDS
Post by: thijn on October 11, 2009, 08:33:44 PM
It's not using any other aliases then the default aliases in WSV I think. (Not sure though)