Raised This Month: $51 Target: $400
 12% 

CarMod v2.01


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   The Specialists        Category:   Fun Stuff        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 - 11601 views - 19.8 KB)
File Type: rar carmod.rar (2.98 MB, 11503 views)
__________________
SteamID STEAM_0:0458033

Last edited by Fred Dawes; 12-24-2007 at 23:12. Reason: Adding Cvar control
Fred Dawes is offline
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-16-2006 , 21:30  
Reply With Quote #2

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
__________________


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
Old 05-16-2006, 23:13
Lord_Destros
This message has been deleted by Lord_Destros.
Fred Dawes
Junior Member
Join Date: May 2006
Old 05-16-2006 , 23:21  
Reply With Quote #4

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.
Fred Dawes is offline
Davidos
Senior Member
Join Date: Feb 2005
Old 02-23-2007 , 13:12   Re: CarMod v2.0
Reply With Quote #5

I suppose this works without Harbu rp right?

<puts on army helmet and runs from the flames>


Can you run people over? I'm gonna try and use it for my zombie server :p

Quote:
Originally Posted by Chakotay View Post
oh ok the carmod is working, but everytime i restart the server, the cars are gone anyone know why ??
I Think it's because the cars aren't saved to vault or sql. A entity spawned that does not belong to a map cannot be saved and will be deleted.

Quote:
Originally Posted by Chakotay View Post
did it. still get the same


Can you open the SMA?

There should be a line called precache_model, copy this and paste the place of the model, then it should work. <Not only directed to you>


EDIT!

I just made a script <cfg> which enables you to shift gears <go faster> and in reverse! Problem, it might overwrite some of your keys, and it might glitch once in a while so you have to restore your speeds <even when you aren't in a car>
__________________
Roar.

Last edited by Davidos; 02-23-2007 at 13:19.
Davidos is offline
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 02-23-2007 , 19:49   Re: CarMod v2.0
Reply With Quote #6

Where does that logic work? Many plugins spawn ents upon map load (typically through text files). Use amx_createcar 'model' '1' 'steam id' to save.
__________________
Quote:
Originally Posted by Twilight Suzuka
Don't worry m'lord. The turtles day will come.
Lord_Destros is offline
Send a message via AIM to Lord_Destros
Old 05-16-2006, 23:54
Lord_Destros
This message has been deleted by Lord_Destros.
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-16-2006 , 23:56  
Reply With Quote #8

YOU HAVE TO TYPE GETOUT IN CONSOLE THATS ALL

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


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
Old 05-16-2006, 23:58
Lord_Destros
This message has been deleted by Lord_Destros.
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-16-2006 , 23:58  
Reply With Quote #10

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


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:36.


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