Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Script Showroom => Topic started by: Windlord on July 20, 2008, 08:53:24 PM

Title: Database for Vice City Vehicles
Post by: Windlord on July 20, 2008, 08:53:24 PM
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
Title: Re: Database for Vice City Vehicles
Post by: thijn on July 21, 2008, 08:13:52 PM
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)
Title: Re: Database for Vice City Vehicles
Post by: ReVilo on July 21, 2008, 08:18:55 PM
*ReVilo uses chunks of this script and adds ".... & Windlord" to script credits.
Title: Re: Database for Vice City Vehicles
Post by: Windlord on July 21, 2008, 09:37:15 PM
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
Title: Re: Database for Vice City Vehicles
Post by: thijn on July 22, 2008, 07:43:26 PM
i've done it myself, all i have to do was delete $scriptdir ;)
Title: Re: Database for Vice City Vehicles
Post by: Windlord on July 22, 2008, 10:53:11 PM
Ah brilliant. Glad to hear it works :)
Title: Re: Database for Vice City Vehicles
Post by: GTA-Roloboy on July 26, 2008, 09:41:13 PM
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
Title: Re: Database for Vice City Vehicles
Post by: Jkownz on August 28, 2008, 06:00:52 AM
Just what I need ;)
Title: Re: Database for Vice City Vehicles
Post by: TanaX01 on August 28, 2008, 06:02:37 AM
Quote from: Jkownz on August 28, 2008, 06:00:52 AM
Just what I need ;)

Is Cool System