PHP Code:
new aimVector[3]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_concmd( "amx_entity", "createaentity");
}
public createaentity (id)
{
new LoL = create_entity( "info_target" );
new Float:fOrigin[3];
{
entity_set_model( LoL, "models/themodel.mdl");
get_user_origin(id, aimVector, 3);
IVecFVec(aimVector, fOrigin);
{
set_pev( LoL, pev_classname, "AnEntity" );;
set_pev( LoL, pev_solid , SOLID_BBOX );
}
}
}
Well, with the entity spawned, how i can save it by nvault?