I´m working with this code:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
new g_Classname [] = "func_car"
new g_Model [] = "models/bigtree.mdl"
public plugin_init ()
{
register_plugin ( "OMFG" , "HAX" , "LOL" )
register_clcmd ( "say /model" , "CmdSayCar" )
register_touch ( g_Classname , "player" , "TouchCar" )
}
public plugin_precache ()
precache_model ( g_Model )
public CmdSayCar ( id )
{
new Ent = create_entity ( "info_target" )
entity_set_string ( Ent , EV_SZ_classname , g_Classname )
entity_set_model ( Ent , g_Model )
entity_set_int ( Ent , EV_INT_solid , SOLID_TRIGGER )
entity_set_size ( Ent , Float :{- 50.0 ,- 50.0 ,- 50.0 }, Float :{ 50.0 , 50.0 , 50.0 })
entity_set_edict ( Ent , EV_ENT_owner , id )
}
public TouchCar ( Ptd , Ptr )
{
new Owner = entity_get_edict ( Ptd , EV_ENT_owner )
if( Owner != Ptr )
return
client_print ( Ptr , print_chat , "You have used this car. Due to time purposes, I'm not going to add code beyond this." )
}
And wanted to know how to put the vector look. Place the model where you are watching
Somebody help me?
Srry for my english
__________________