Raised This Month: $ Target: $400
 0% 

Help with pev_groupinfo


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
pacheco
Senior Member
Join Date: Jul 2011
Old 12-22-2014 , 20:28   Help with pev_groupinfo
Reply With Quote #1

I'm trying to make one entity SOLID_NOT for CT and SOLID for TR. I read here about pev_groupinfo and tried it. It works, but have one problem: i can pass not only in the ent, but through the enemies too. It's like a semiclip plugin... i don't want that. How to put it only for entity?

Here is the code pev_groupinfo:

In entity part:
PHP Code:
set_pev(entpev_groupinfo1);
set_pev(idpev_groupinfo0); 
Team changes.. (zp)
PHP Code:
// TR
public zp_user_infected_post(id)
{
    
set_pev(idpev_groupinfo1); // same group
}

// CT
public zp_user_humanized_post(id)
{
    
set_pev(idpev_groupinfo0); // different group

__________________




Last edited by pacheco; 12-22-2014 at 20:29.
pacheco 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 10:38.


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