AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CarMod (https://forums.alliedmods.net/showthread.php?t=17274)

pdoubleopdawg 08-28-2005 16:23

CarMod
 
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) }

XxAvalanchexX 08-28-2005 20:34

func_vehicle's dont work like that. At all. As far as I know you can't make a functional one with AMXx, but Suzuka will probably prove me wrong.

pdoubleopdawg 08-28-2005 20:47

Ok, I wonder if ripenting them in the map will do any good.. Will try. :)

Twilight Suzuka 08-28-2005 22:34

Haha! Yes I will. But not right now.


All times are GMT -4. The time now is 14:30.

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