Raised This Month: $ Target: $400
 0% 

CarMod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pdoubleopdawg
Senior Member
Join Date: Aug 2005
Old 08-28-2005 , 16:23   CarMod
Reply With Quote #1

Hi, I don't know if this is possible. I'm no good coder for AmxModX so I was wondering if someone could help me out in making a car at the T/CT Spawn. This is what I've got so far (No work!!!)

Code:
#include <amxmodx> #include <amxmisc> #include <engine> public plugin_init() {     register_plugin("CarMod","0.1 Alpha","DahVid")     register_cvar("amx_carz","1")     register_logevent("roundstart",2,"0=World triggered","1=Round_Start") } public roundstart() {     new tspawn=find_ent_by_class(-1,"info_player_deathmatch")     new ctspawn=find_ent_by_class(-1,"info_player_start")     new model[]="models/chick.mdl"     new Float:torigin[3]     new Float:ctorigin[3]     entity_get_vector(tspawn,EV_VEC_origin,torigin)     entity_get_vector(ctspawn,EV_VEC_origin,ctorigin)         new tcar=create_entity("func_vehicle")     entity_set_origin(tcar,torigin)     entity_set_float(tcar,EV_FL_dmg,700.0)     entity_set_float(tcar,EV_FL_speed,500.0)     entity_set_string(tcar,EV_SZ_model,model)         new ctcar=create_entity("func_vehicle")     entity_set_origin(ctcar,ctorigin)     entity_set_float(ctcar,EV_FL_dmg,700.0)     entity_set_float(ctcar,EV_FL_speed,500.0)     entity_set_string(ctcar,EV_SZ_model,model) }
pdoubleopdawg is offline
 


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 14:30.


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