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