Author Topic: Lockcar For WSV..  (Read 12020 times)

0 Members and 1 Guest are viewing this topic.

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Lockcar For WSV..
« on: September 07, 2008, 09:15:42 am »
I have made lockcar code for WSV but unfortunately its not working,so plz help me out.....Here's the code!!

Code: [Select]
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

  • Guest
Re: Lockcar For WSV..
« Reply #1 on: September 07, 2008, 11:21:25 am »
Code: [Select]
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..
  }
}
« Last Edit: September 07, 2008, 12:18:40 pm by Windlord »

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #2 on: September 07, 2008, 11:44:01 am »
 :DThanks man i hope that u would help me out
 ;D
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #3 on: September 07, 2008, 11:48:22 am »
and this is for unlock the car :P

Code: [Select]
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..>>

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #4 on: September 07, 2008, 11:57:50 am »
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

  • Guest
Re: Lockcar For WSV..
« Reply #5 on: September 07, 2008, 12:19:02 pm »
A bracket was missing at the end
I have edited my previous post.

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #6 on: September 07, 2008, 06:35:49 pm »
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..>>

Offline Tamas

  • Made Man
  • ***
  • Posts: 127
    • View Profile
    • http://www.tamasnet.eu/
Re: Lockcar For WSV..
« Reply #7 on: September 07, 2008, 06:49:37 pm »
Heres my lockcar if you need it  :-X

Quote
    elseif (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!
    }

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #8 on: September 14, 2008, 06:11:53 am »
 :PThanks for ur lockcar ,i will make a unlockcar myself ......
GOD BLESS ALL..<<Founder of PUN Clan.....Born to fight and Kill..>>

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #9 on: September 15, 2008, 07:12:50 pm »
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..>>

Offline Punjabi

  • Made Man
  • ***
  • Posts: 147
  • Config Editor
    • View Profile
    • PUN Clan
Re: Lockcar For WSV..
« Reply #10 on: September 16, 2008, 11:05:21 am »
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..>>

Offline [XT]ariel[X]

  • Wiseguy
  • **
  • Posts: 58
  • Hi all!!
    • View Profile
    • American Server
Re: Lockcar For WSV..
« Reply #11 on: November 07, 2009, 09:07:50 pm »
Code: [Select]
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
Code: [Select]
      WSV.setvehiclestatus %car 1is fail.

line correct
Code: [Select]
      WSV.setvehiclestatus %car 4
:)
Clic in image from enter in my web :D

Offline thijn

  • LU testers
  • VC:MP Veteran
  • *
  • Posts: 667
  • Im proud to be pro.
    • View Profile
    • Vice Underdogs
Re: Lockcar For WSV..
« Reply #12 on: November 08, 2009, 01:42:09 am »
Please see the dates before you post.
This topic is 1 year old...