AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with pev_groupinfo (https://forums.alliedmods.net/showthread.php?t=222530)

_Pro_ 08-03-2013 20:36

Help with pev_groupinfo
 
Hello everyone! Is the first time that I post in english! I need help to understand the pev_groupinfo... I dont know what is it and what is his function, if anyone knew tell me please! Sorry for my bad english :c Thanks for read!

Black Rose 08-04-2013 07:28

Re: Help with pev_groupinfo
 
https://forums.alliedmods.net/showthread.php?t=154538

https://forums.alliedmods.net/showth...=pev_groupinfo

_Pro_ 08-04-2013 11:30

Re: Help with pev_groupinfo
 
I have seen this, and I dont understand how work pev_groupinfo, for this I make the thread! Thanks!
I tried to do an ent that is not solid for some players and solid for others... but the ent is solid for everyone o not solid for everyone...
PHP Code:

#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

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

new g_ent = -1

public plugin_precache() precache_model("models/Ancestral-Games/Bhop.mdl")

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("test""test")
    
register_clcmd("test2""test2")
}

public 
test2(id)
{
    
set_pev(g_entpev_groupinfopev(g_entpev_groupinfo) & ~id)
}

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_ent"models/Ancestral-Games/Bhop.mdl")
    
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_groupinfopev(g_entpev_groupinfo) | id)




All times are GMT -4. The time now is 15:51.

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