http://downloads.windlord.co.cc/
>> Sunday 20th July
>> Name: Database for Vice City Vehicles
>> Creator: Windlord
This Script was made to help you, the scripter of vcmp
to get information about cars in a much faster and easier way.
All you have to do is, paste the CarDB script in your server script.
This script's information is based on VercettiG's Vechicle IDs pdf Guide.
The aliases in the script are as follows;
$vcar.getname($1)
- Returns the Vehicle's Name if you input the partial name or id of a vehicle
$vcar.getid($1)
- Returns the Vehicle's ID if you input the partial name or id of a vehicle
$vcar.getspeed($1)
- Returns the Vehicle's Max Speed if you input the partial name or id of a vehicle
$vcar.getacc($1)
- Returns the Vehicle's Max Acceleration if you input the partial name or id of a vehicle
$vcar.getmass($1)
- Returns the Vehicle's Mass if you input the partial name or id of a vehicle
It doesnt work,
Whats wrong:
on *:SIGNAL:vcmp.event.enter:{
var %id = $vcmp.nameid($1)
var %carid = $3
var %carname = $vcmp.carname(%carid)
if (%echolevel > 5) vcmp.echo 14 $+ ** $1 is $iif(($4 == 18),driving,a passenger in) $iif(($left($vcmp.carname($3),1) isin aeiou),an,a) $vcmp.carname($3) $+ . $par(id: $2 - type: $3)
!hadd vcmp vehicles. $+ $1 $1-
vcmp.adminmsg %id Entered Vehicle - Name: %carname Max speed: $vcar.getspeed(%carname) ID: $2
}
It says: Entered Vehicle - Name: Stinger (thats right) Max speed: Invalid Name ( ??? ???) ID: 132 (thats right)
*ReVilo uses chunks of this script and adds ".... & Windlord" to script credits.
Your hsh file needs to be in your script's directory
Also.. if the hash does not load automatically, you need to load it with;
/hmake CarDB 100
/hload CarDB $scriptdirCarDB.hsh
i've done it myself, all i have to do was delete $scriptdir ;)
Ah brilliant. Glad to hear it works :)
Quote from: thijn on July 22, 2008, 07:43:26 PM
i've done it myself, all i have to do was delete $scriptdir ;)
Me too :P
Just what I need ;)