Raised This Month: $94 Target: $400
 23% 

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 , 22: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 - 10792 views - 19.8 KB)
File Type: rar carmod.rar (2.98 MB, 10733 views)
__________________
SteamID STEAM_0:0458033

Last edited by Fred Dawes; 12-25-2007 at 00:12. Reason: Adding Cvar control
Fred Dawes is offline
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-16-2006 , 22: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-17-2006, 00:13
Lord_Destros
This message has been deleted by Lord_Destros.
Fred Dawes
Junior Member
Join Date: May 2006
Old 05-17-2006 , 00:21  
Reply With Quote #3

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
Old 05-17-2006, 00:54
Lord_Destros
This message has been deleted by Lord_Destros.
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-17-2006 , 00:56  
Reply With Quote #4

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-17-2006, 00:58
Lord_Destros
This message has been deleted by Lord_Destros.
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-17-2006 , 00:58  
Reply With Quote #5

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
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 05-17-2006 , 01:02  
Reply With Quote #6

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?
__________________
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
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-17-2006 , 01:10  
Reply With Quote #7

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
__________________


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
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 05-17-2006 , 01:19  
Reply With Quote #8

This sound very sweet. BTW where are the models and sounds?
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 05-17-2006 , 01:32  
Reply With Quote #9



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
__________________


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
Lord_Destros
Veteran Member
Join Date: Jul 2004
Location: With stupid.
Old 05-17-2006 , 01:34  
Reply With Quote #10

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 (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).
__________________
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
Reply


Thread Tools
Display Modes

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 05:15.


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