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..
}
}
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..
}
}
:DThanks man i hope that u would help me out
;D
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
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...
A bracket was missing at the end
I have edited my previous post.
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
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!
}
:PThanks for ur lockcar ,i will make a unlockcar myself ......
I think there is a problem with this command i try to repair it ....myself
.... ;) ;D
Your command is not working i tried to repair but i failed ,so u can post a command for me again with correct sequence.....
Quote from: Windlord on September 07, 2008, 10: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
:)
Please see the dates before you post.
This topic is 1 year old...