AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to use pev_groupinfo (https://forums.alliedmods.net/showthread.php?t=249650)

MexPower 10-09-2014 15:51

how to use pev_groupinfo
 
Hello, I need help on the subject of this pev
What I do is:
Make (sandbag) transferred entity that humans, but not for the zombies, this according to experts need to use pev_groupinfo
If someone had a solution on how to use it would be greatly appreciate it.

PHP Code:

public fw_touchsaco(entid) {
    if(
pev_valid(ent) && is_user_alive(id)) {
        static 
groupinfopev(entpev_groupinfogroupinfo)
        if(
groupinfo id) {
            if(
zp_get_user_zombie(id)) 
                
set_pev(entpev_groupinfogroupinfo & ~id)
        }
        else {
            if(!
zp_get_user_zombie(id)) 
                
set_pev(entpev_groupinfogroupinfo id)
        }
    }    


I tried that but it has paid me: /
Thanks for reading

jimaway 10-09-2014 17:01

Re: how to use pev_groupinfo
 
if player is already set in the entitys groupinfo bitsum the touch will never trigger

MexPower 10-09-2014 17:09

Re: how to use pev_groupinfo
 
and what is my error?


All times are GMT -4. The time now is 17:39.

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