• Welcome to Vice City Multiplayer.
 

WSV CMDS

Started by gamyster, October 10, 2008, 02:30:00 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gamyster

Can Someone post !engine on/off cmd
Founder of [SAF]Clan

Tamas

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.

gamyster

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
Founder of [SAF]Clan

Punjabi

plz place it at right place so that ur brackets will close properly by other command ......... ;)

Cya
Punjabi_goli
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

gamyster

plz can u make without checking if he owns the car
Founder of [SAF]Clan

Tamas

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
    }

gamyster

#6
THANK you its working
Founder of [SAF]Clan

gamyster

But i saw in a server that when u type !engineon the player itself getout from car and get in in about 1 second!
Founder of [SAF]Clan

Tamas

That is a really useless stuff

Punjabi

GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

[XT]ariel[X]

and alias for engineon not alias -.-!
Clic in image from enter in my web :D

thijn

[quote author=[XT]ariel[X] link=topic=829.msg10134#msg10134 date=1255044040]
and alias for engineon not alias -.-!
[/quote]
??? ??? What ??? ???


Mattz

I guess ariel wants to see alias <something> { blah }

[XT]ariel[X]

the scripts engineon and engineoff using alias not?
Clic in image from enter in my web :D

thijn

It's not using any other aliases then the default aliases in WSV I think. (Not sure though)