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

Entity.


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-19-2012 , 09:31   Re: Entity.
Reply With Quote #21

Don't bump your thread until 2 weeks have passed.

What is this line for?
PHP Code:
set_pev(ent,pev_origin,{3100.51074.4, -2317.2}) 
Is that a specific origin you are testing with?
__________________
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-19-2012 , 11:35   Re: Entity.
Reply With Quote #22

This origins i get an map surf_ski_2.
Tested an respawn and other places.
DelFast is offline
DelFast
Member
Join Date: May 2011
Old 04-20-2012 , 04:10   Re: Entity.
Reply With Quote #23

New code.. also dont 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_forward(FM_Touch"fw_touch")


public 
plugin_precache()
    
precache_model("models/gib_skull.mdl")

public 
fw_touch(zoneplayer) {

    if (!
pev_valid(zone) || !is_user_connected(player))
        return 
FMRES_IGNORED

    
static classname[33]
    
pev(playerpev_classnameclassname32)
    if (!
equal(classname"player")) 
        return 
FMRES_IGNORED
    
    pev
(zonepev_classnameclassname32)

    return 
FMRES_IGNORED
}

public 
CreateZone() {
    new 
Float:origins[3] = {3072.01050.0, -2317.0}
    new 
entity fm_create_entity("info_target")
    
set_pev(entitypev_classname"myzone")
    
fm_entity_set_model(entity"models/gib_skull.mdl")
    
fm_entity_set_origin(entity,origins)

    
set_pev(entitypev_movetypeMOVETYPE_FLY)
    
set_pev(entitypev_solidSOLID_BBOX)
    
fm_entity_set_size(entityFloat:{-52.0, -52.0, -32.0}, Float:{52.052.032.0})
    
    
fm_set_entity_visibility(entity0)
    return 
entity
}

stock fm_entity_set_origin(index, const Float:origin[3]) {
    new 
Float:mins[3], Float:maxs[3]
    
pev(indexpev_minsmins)
    
pev(indexpev_maxsmaxs)
    
engfunc(EngFunc_SetSizeindexminsmaxs)

    return 
engfunc(EngFunc_SetOriginindexorigin)
}

stock fm_set_entity_visibility(indexvisible 1) {
    
set_pev(indexpev_effectsvisible == pev(indexpev_effects) & ~EF_NODRAW pev(indexpev_effects) | EF_NODRAW)

    return 
1
}

stock fm_entity_set_size(index, const Float:mins[3], const Float:maxs[3])
    return 
engfunc(EngFunc_SetSizeindexminsmaxs)

stock fm_entity_set_model(index, const model[])
    return 
engfunc(EngFunc_SetModelindexmodel)

stock fm_create_entity(const classname[])
    return 
engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocStringclassname)) 
DelFast is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 04-20-2012 , 09:26   Re: Entity.
Reply With Quote #24

You are never creating a zone.
__________________
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-20-2012 , 10:46   Re: Entity.
Reply With Quote #25

In plugin init write a line "CreateZone()" ?
DelFast is offline
DelFast
Member
Join Date: May 2011
Old 04-21-2012 , 04:59   Re: Entity.
Reply With Quote #26

Registered clcmd, because the same does not work.
PHP Code:
    register_clcmd("say /cr""CreateZone"

Last edited by DelFast; 04-21-2012 at 04:59.
DelFast is offline
Old 04-23-2012, 12:57
DelFast
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 04-24-2012, 07:00
DelFast
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
Old 04-24-2012, 10:53
DelFast
This message has been deleted by Exolent[jNr]. Reason: Don't bump until 2 weeks have passed since last post.
DelFast
Member
Join Date: May 2011
Old 04-25-2012 , 06:45   Re: Entity.
Reply With Quote #27

Please, delete this thread.
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 08:16.


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