Wait to afternoon, I will relase my script based on gus wich probably contains all commands wich you want.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts MenuQuoteelseif ($2 == !lockcar) || ($2 == !pmlockcar) {
if ($vcmp.cmdcheck(!lockcar,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Invalid command useage
elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID
elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You aren't owner of this vechicle
else {
vcmp.lockdoors $3 4
vcmp.msg %id You have just locked your vehicle
}
}
Quoteelseif ($2 == !unlockcar) || ($2 == !pmunlockcar) {
if ($vcmp.cmdcheck(!unlockcar,%id) == fail) !halt
elseif (!$3) vcmp.msg %id Invalid command useage
elseif ($3 !isnum) vcmp.msg %id Error - Invalid Vehicle ID, $2 <car id>
elseif ($vcmp.carowner($3) != %name) vcmp.msg %id You aren't owner of this vechicle
else {
vcmp.lockdoors $3 0
vcmp.msg %id You have just unlocked your vehicle
}
}
Quote
alias vcmp.lockdoors dll rcondll.dll RconCommand set 3 $1-
Quotealias vcmp.forsale !return $iif($readini(vcmp.cars.ini,COUNT,Forsale),$v1,0)
Quotealias vcmp.allcars !return $iif($readini(vcmp.cars.ini,COUNT,All),$v1,0)
Quoteelseif ($2 == !forsale) {
if ($vcmp.cmdcheck(!mycars,%id) == fail) !halt
else {
vcmp.msg %id Total vehicles: $vcmp.allcars For sale vehicles: $vcmp.forsale
}
}
Quote!writeini -n vcmp.cars.ini COUNT Forsale $calc($vcmp.forsale - 1)
Quote!writeini -n vcmp.cars.ini COUNT Forsale $calc($vcmp.forsale +1)
QuoteAnd btw punjabi see you gave the scripts but still Intruder didnt understood what will be in INI files
elseif ($2 == !car) {
if ($vcmp.cmdcheck(!car,%id) == fail) !halt
elseif (%a == -1) vcmp.msg %id Absent ID/Name
elseif ($vcmp.vehicle(%a,id) == 0) vcmp.msg %id $vcmp.name(%a) is currently on foot!
elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) == For Sale) vcmp.msg %id Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Price: $+($chr(91),$vcmp.vehiclecost($vcmp.vehicle(%a,id)),$chr(93))
elseif ($vcmp.carsharer($vcmp.vehicle(%a,id)) != None) vcmp.msg %id Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Owner: $+($chr(91),$vcmp.carowner($vcmp.vehicle(%a,id)),$chr(93)) Shared: $+($chr(91),$vcmp.carsharer($vcmp.vehicle(%a,id)),$chr(93))
elseif ($vcmp.carowner($vcmp.vehicle(%a,id)) != For Sale) vcmp.msg %id Name: $+($chr(91),$vcmp.carname($vcmp.vehicle(%a,id)),$chr(93)) ID: $+($chr(91),$vcmp.vehicle(%a,id),$chr(93)) Owner: $+($chr(91),$vcmp.carowner($vcmp.vehicle(%a,id)),$chr(93))
else {
vcmp.msg %id Car Info
}
}