• Welcome to Vice City Multiplayer.
 

Lockcar For WSV..

Started by Punjabi, September 07, 2008, 07:15:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Punjabi

I have made lockcar code for WSV but unfortunately its not working,so plz help me out.....Here's the code!!

alias WSV.lockcar {
 if ($WSV.name($1) isin $WSV.carowners($2)) {
   if ($WSV.lockcar $2 $+ CarIDs $WSV.vehiclename($2) {
    hadd WSV.Cars $2 $+ CarIDs $WSV.vehiclename($2) {
    }
    else {
     WSV.lockdoors $2 4
     WSV.msg $1 Your Car is Locked..
   }
 }
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Windlord

#1

alias WSV.lockcar {
  var %car = $WSV.vehicle($2)
 if ($WSV.name($2) isin $WSV.carowners(%car)) {
     WSV.setvehiclestatus %car 1
     WSV.msg $2 Your Car is Locked..
 }
}

Punjabi

 :DThanks man i hope that u would help me out
;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Punjabi

and this is for unlock the car :P

alias WSV.unlockcar {
  var %car = $WSV.vehicle($2)
  if ($WSV.name($2) isin $WSV.carowners(%car)) {
      WSV.setvehiclestatus %car 0
      WSV.msg $2 Your Car is unLocked..
  }


Thanks
Punjabi_goli
Hope it will work..... ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Punjabi

But when i load the script this message is coming ??? ???

-= Hashes Loaded Successfully =-
-= Hashes Loaded Successfully =-
-
WSV.AUTOLOADPICKUP Unknown command
-
prblem with the command you have give me...
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Windlord

A bracket was missing at the end
I have edited my previous post.

Punjabi

Thanks man i hope now it will work definately and i like WSV and one more time thanks to u for making this excellent scripttttt ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Tamas

Heres my lockcar if you need it  :-X

Quoteelseif (lockcar == $3) && ($2 < 100) {
      WSV.cmdlevelcheck $1-
      if ($WSV.getname($2) == $WSV.carowners($4)) || ($WSV.getname($2) isin $WSV.sharecarowners($4)) WSV.setvehiclestatus $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) locked
      else WSV.announce $2 This is not your vehicle!
    }

Punjabi

 :PThanks for ur lockcar ,i will make a unlockcar myself ......
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Punjabi

I think there is a problem with this command i try to repair it ....myself
.... ;) ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Punjabi

Your command is not working i tried to repair but i failed ,so u can post a command for me again with correct sequence.....
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

[XT]ariel[X]

Quote from: Windlord on September 07, 2008, 09:21:25 AM

alias WSV.lockcar {
  var %car = $WSV.vehicle($2)
 if ($WSV.name($2) isin $WSV.carowners(%car)) {
     WSV.setvehiclestatus %car 1
     WSV.msg $2 Your Car is Locked..
 }
}


Error, Windlord Scripts line
      WSV.setvehiclestatus %car 1
is fail.

line correct
      WSV.setvehiclestatus %car 4

:)
Clic in image from enter in my web :D

thijn

Please see the dates before you post.
This topic is 1 year old...