AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   CarMod v2.01 (https://forums.alliedmods.net/showthread.php?t=28528)

Fred Dawes 05-16-2006 21:30

CarMod v2.01
 
2 Attachment(s)
-----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)

tetsoma 05-16-2006 21:30

someone get this guy a cookie lol he is the best



fred your friken awsome dude. i had my server running this plugin since it started it and i had no problems with it so there is my input. its been working for 5 weeks without errors.

but mine is going to be better hehehe :twisted:

Fred Dawes 05-16-2006 23:21

Quote:

Originally Posted by Lord_Destros
NOOOOOO IT WAS TOO GOOD TO BE TRUE!
Compile error: Undefined Symble: "MAX_SPAWNS"

REEDIT: wait wtf, why'd you comment the define out?

Sorry, I never use the loading of spawns on my server because item_keys are so useful I don't need a file to spawn cars. I just re-enabled all the things that I left out for more usability. Apparently, I re-enabled Steven |AF|'s carsfile part without re-enabling '#define MAXSPAWNS 30'.

In short, it is fixed now, enjoy.

tetsoma 05-16-2006 23:56

YOU HAVE TO TYPE GETOUT IN CONSOLE THATS ALL

just make a mind to say (bind i "getout")

tetsoma 05-16-2006 23:58

ya lol i had that problem to all the comands are done in console

Lord_Destros 05-17-2006 00:02

by the way, i'm not sure if the carsfile.ini is working correctly (Even though I probably won't use it). A suggestion is allow certain types of cars to be used only by certain orgs (i don't really care about most orgs, but I was hoping something like that could be done for ambulances and police).

EDIT: also, i'm guessing passengers don't work if i uncomment some of the commands?

tetsoma 05-17-2006 00:10

Quote:

by the way, i'm not sure if the carsfile.ini is working correctly (Even though I probably won't use it). A suggestion is allow certain types of cars to be used only by certain orgs (i don't really care about most orgs, but I was hoping something like that could be done for ambulances and police).

well you need the carsfile.ini to save cars. and you can do it for orgs you just got to do it for each person..

when you choice to save it. it goes to the carsfile.ini and you can alter the spawn from there.

in other words you need it

Cheap_Suit 05-17-2006 00:19

This sound very sweet. BTW where are the models and sounds?

tetsoma 05-17-2006 00:32



fred just thought i would save you the trouble since you told me everthing


the sounds you should already have but you can take them out and as far as the models go you just replace them with w/e model you have that you want to use for your server.. more of a customize plugin then anything

Lord_Destros 05-17-2006 00:34

Quote:

Originally Posted by tetsoma
Quote:

by the way, i'm not sure if the carsfile.ini is working correctly (Even though I probably won't use it). A suggestion is allow certain types of cars to be used only by certain orgs (i don't really care about most orgs, but I was hoping something like that could be done for ambulances and police).

well you need the carsfile.ini to save cars. and you can do it for orgs you just got to do it for each person..

when you choice to save it. it goes to the carsfile.ini and you can alter the spawn from there.

in other words you need it

Yes but that requires crap loads of car spawns. I was thinking more along the lines of, if you have job id #1 to #2, then you get to use this spawn (useful for MCPD/MCMD). The ingame command for amx_createcar saves to the .ini but it won't load from the .ini.

Lastly, i'm not sure if the different car speeds work, when I raced a guy around the map using car_viper while he was using car_astra, I somehow lost to him :lol: (he had the inner track which gave him like a 2-5 second advantage, but it shouldn't make a difference if my speed is almost 3x greater than his).


All times are GMT -4. The time now is 09:13.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.