Thread: CarMod v2.01
View Single Post
Plugin Info:     Modification:          Category:          Approver:   v3x (159)
Fred Dawes
Junior Member
Join Date: May 2006
Old 05-16-2006 , 21:30   CarMod v2.01
Reply With Quote #1

-----888888----------88888-------888888----
----888----88-------888-888------88---88---
----888----88-------888---888----88----88--
----888--------------888---888----88---88---
----888--------------88888888----888888----
----888--------------888---888----88---88---
----888----88-------888---888----88----88--
-----8888888-------888---888----88-----88-
------------------------------------------
------------------------------------------
---888------888-----8888888-----888888---
---8888----8888----88-----88----88-----88--
---88-88--88-88----88-----88----88------88-
---88--8888--88----88-----88----88--------8-
---88---88----88----88-----88----88--------8-
---88----------88----88-----88----88------88-
---88----------88----88-----88----88-----88--
---88----------88-----8888888----888888---
--------------------------------------------------


******************************************
By

Stephen|AF| - Base carmod (one speed, foot steps, no engine sound, honk, siren, crashes, car effect, car spawning command, temporary locks)

Fred Dawes - Added more models, engine running sound, different speed classes, permanent locks, item_keys for car spawning, looping siren for use by car_police only,

Wonsae - Added passenger mod (Not working)
******************************************
Works on AMXX v1.01

FOR THIS PLUGIN TO WORK, ADD THE LINE 'sv_maxspeed "3000" TO YOUR server.cfg!!!!

Cvars
Code:
carmod_s = 1000  //Default S CLASS speed
carmod_a = 850  //Default A CLASS speed
carmod_b = 700  //Default B CLASS speed
carmod_c = 550  //Default C CLASS speed
carmod_crashdmg = 75  // Damage taken by each player in a head-on crash, or a pedestrian when hit by a car
Commands (In Console)
amx_createcar <car model> <0/1 save> "<steamid>"
Ex.
amx_createcar car_gto 0 "STEAM_0:1:234567"
will spawn a temporary GTO car for Steamid "STEAM_0:1:234567"

getout
Gets out of a car

honk
Honks the horn

siren
Works for car_police only. Loops the siren sound.
----------------------------------------------------------------------------
Mysql Commands

item_keys "<id>" "<carmodel>"
Ex.
item_keys "<id>" "car_gto"
will spawn a GTO for the person who used the item.

IT'S OK FOR YOU TO MAKE KEYS PERMANENT ITEMS, ONLY ONE CAR CAN BE SPAWNED PER PERSON AT A TIME!!!
-----------------------------------------------------------------------------
Precached models/classes
All models are under 'ts/models/player/<model name>/<model name>.mdl"

Class S (%308 speed)
car_gto
car_viper

Class A (%262 speed)
car_evo

Class B (%215 speed)
car_corolla
car_police

Class C (%169 speed)
car_astra

To add a car, simply precache a model. By default, it will be class C.
------------------------------------------------------------------------
Edit: 9/9/2007
Thanks to MeTaX for the .rar
Fixed some small bugs involving car crashes. Added Cvars to help control some variables. Crashing two cars will now force the two players out. (useful for stopping renegade drivers)
Attached Files
File Type: sma Get Plugin or Get Source (carmod.sma - 11605 views - 19.8 KB)
File Type: rar carmod.rar (2.98 MB, 11508 views)
__________________
SteamID STEAM_0:0458033

Last edited by Fred Dawes; 12-24-2007 at 23:12. Reason: Adding Cvar control
Fred Dawes is offline