Raised This Month: $ Target: $400
 0% 

Help with pev_groupinfo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
bibu
Veteran Member
Join Date: Sep 2010
Old 12-27-2014 , 15:38   Re: Help with pev_groupinfo
Reply With Quote #7

Works fine, credit for connor:

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <fakemeta> 
#include <hamsandwich>

#define PLUGIN    "Solid y NO Solid" 
#define AUTHOR    "Gonza.-*" 
#define VERSION    "1.0" 

new g_ent = -

#define g_model "models/dust_brick.mdl"

enum groups ( <<= )
{
    
GROUP_NONE,
    
GROUP_T 1,
    
GROUP_CT
}

public 
plugin_precache() precache_model(g_model

public 
plugin_init() 

    
register_plugin(PLUGINVERSIONAUTHOR
    
RegisterHam(Ham_Spawn"player""OnCBasePlayer_Spawn_Post"true);
    
register_clcmd("test""test"
    
register_clcmd("test2""test2"
    
register_clcmd("test3""test3"


public 
OnCBasePlayer_Spawn_Post(id)
{
    if( 
is_user_alive(id) )
    {
        
set_pev(idpev_groupinfoGROUP_T GROUP_CT);
    }
}  

public 
test2(id

    
set_pev(idpev_groupinfoGROUP_T


public 
test3(id

    
set_pev(idpev_groupinfoGROUP_CT


public 
test(id

    
g_ent engfunc(EngFunc_CreateNamedEntityengfunc(EngFunc_AllocString"info_target")) 
    
    if (!
pev_valid(g_ent)) return 
    
    
set_pev(g_entpev_classname"BM_Block"
    
set_pev(g_entpev_solidSOLID_BBOX
    
    
engfunc(EngFunc_SetModelg_entg_model
    
engfunc(EngFunc_SetSizeg_entFloat:{-32.0, -32.0, -4.0}, Float:{ 32.032.04.0 }) 
    
    new 
Float:fOrigin[3]; pev(idpev_originfOrigin
    
fOrigin[1] -= 60.0 
    
    engfunc
(EngFunc_SetOriging_entfOrigin
    
    
set_pev(g_entpev_groupinfoGROUP_T);  
    
    
engfunc(EngFunc_DropToFloor,g_ent)

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
 



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 15:17.


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