Vice City Multiplayer

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

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

Quote
    elseif (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, 05: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, 05: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, 06: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, 09:53:19 pm
Done:

Quote
    elseif (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, 12:14:44 pm
THANK you its working
Title: Re: WSV CMDS
Post by: gamyster on October 12, 2008, 01: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, 01:48:50 pm
That is a really useless stuff
Title: Re: WSV CMDS
Post by: Punjabi on October 12, 2008, 03:06:25 pm
Its a bug ..... :o
Title: Re: WSV CMDS
Post by: [XT]ariel[X] on October 09, 2009, 02:20:40 am
and alias for engineon not alias -.-!
Title: Re: WSV CMDS
Post by: thijn on October 10, 2009, 12:12:05 am
and alias for engineon not alias -.-!
??? ??? What ??? ???
Title: Re: WSV CMDS
Post by: Mattz on October 10, 2009, 05: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, 08:18:18 pm
the scripts engineon and engineoff using alias not?
Title: Re: WSV CMDS
Post by: thijn on October 11, 2009, 09:33:44 pm
It's not using any other aliases then the default aliases in WSV I think. (Not sure though)