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

Entity.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DelFast
Member
Join Date: May 2011
Old 04-16-2012 , 16:31   Entity.
Reply With Quote #1

Why entity dont create?

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})
    
dllfunc(DLLFunc_Spawnent)
    
set_pev(entpev_solidSOLID_BBOX)

    return 
ent

DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-16-2012 , 16:55   Re: Entity.
Reply With Quote #2

What are you trying to do?
__________________
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-16-2012 , 16:56   Re: Entity.
Reply With Quote #3

Create invisible solid box an origins, but he's dont create.
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-16-2012 , 16:58   Re: Entity.
Reply With Quote #4

Quote:
Originally Posted by DelFast View Post
Create invisible solid box an origins, but he's dont create.
No no no. I know you are trying to create an entity. But when? Your touch hook makes no sense.
__________________
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-16-2012 , 16:59   Re: Entity.
Reply With Quote #5

As will be right?
DelFast is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 04-17-2012 , 03:39   Re: Entity.
Reply With Quote #6

Exolent, why?
__________________
The functional way is the right way
GordonFreeman (RU) is offline
DelFast
Member
Join Date: May 2011
Old 04-17-2012 , 07:07   Re: Entity.
Reply With Quote #7

My code is dont work.. Exolent, why touch hook makes no sense?
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 09:32   Re: Entity.
Reply With Quote #8

You don't need to spawn the entity. You just need to 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 , 11:06   Re: Entity.
Reply With Quote #9

Quote:
Originally Posted by Exolent[jNr] View Post
You don't need to spawn the entity. You just need to give it a model.
Okey, i delete "return", but i want create an invisible entity!
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-17-2012 , 11:12   Re: Entity.
Reply With Quote #10

... I said nothing about a return. Did you even read?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 04:56.


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