Raised This Month: $51 Target: $400
 12% 

Entity.


Post New Thread Reply   
 
Thread Tools Display Modes
DelFast
Member
Join Date: May 2011
Old 04-17-2012 , 11:17   Re: Entity.
Reply With Quote #11

I deleted line "dllfunc(DLLFunc_Spawn, ent)", but plugin dont work
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 13:00   Re: Entity.
Reply With Quote #12

Quote:
Originally Posted by Exolent[jNr] View Post
give it a model.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
DelFast
Member
Join Date: May 2011
Old 04-17-2012 , 13:52   Re: Entity.
Reply With Quote #13

I set a model :
Code:
 	set_pev(ent, pev_model, "models/gib_skull.mdl")
Not work.
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 14:36   Re: Entity.
Reply With Quote #14

You have to use EngFunc_SetModel for that.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
DelFast
Member
Join Date: May 2011
Old 04-17-2012 , 15:48   Re: Entity.
Reply With Quote #15

All the same, plugin does not work.
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>

#define PLUGIN "xxx"
#define VERSION "1.0"
#define AUTHOR "DelFast"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_touch("*","some_entiti","function")
}

public function() {
    new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))
    
set_pev(ent,pev_classname,"some_entity")
    
set_pev(ent,pev_origin,{3100.51074.4, -2317.2}) // set your origins here
    
engfunc(EngFunc_SetSizeentFloat:{-52.0, -52.0, -32.0}, Float:{52.052.032.0})
    
set_pev(entpev_solidSOLID_BBOX)
    
engfunc(EngFunc_SetModel,ent,"models/gib_skull.mdl"
    return 
ent


Last edited by DelFast; 04-17-2012 at 15:55.
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 16:07   Re: Entity.
Reply With Quote #16

Try this:
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>

#define PLUGIN "xxx"
#define VERSION "1.0"
#define AUTHOR "DelFast"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_touch("*","some_entiti","function")
}

public function() {
    new 
ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target"))
    
set_pev(ent,pev_classname,"some_entity")
    
set_pev(ent,pev_origin,{3100.51074.4, -2317.2}) // set your origins here
    
engfunc(EngFunc_SetModel,ent,"models/gib_skull.mdl"
    
set_pev(entpev_solidSOLID_BBOX)
    
engfunc(EngFunc_SetSizeentFloat:{-52.0, -52.0, -32.0}, Float:{52.052.032.0})
    return 
ent

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
DelFast
Member
Join Date: May 2011
Old 04-17-2012 , 16:15   Re: Entity.
Reply With Quote #17

Not work.. Dont have entity.
DelFast is offline
DelFast
Member
Join Date: May 2011
Old 04-19-2012 , 06:39   Re: Entity.
Reply With Quote #18

Bump..
DelFast is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-19-2012 , 07:10   Re: Entity.
Reply With Quote #19

o_0
__________________
The functional way is the right way
GordonFreeman (RU) is offline
DelFast
Member
Join Date: May 2011
Old 04-19-2012 , 07:12   Re: Entity.
Reply With Quote #20

Quote:
Originally Posted by GordonFreeman (RU) View Post
o_0
What?
DelFast is offline
Reply



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 05:02.


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