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(ent, id) {
if(pev_valid(ent) && is_user_alive(id)) {
static groupinfo; pev(ent, pev_groupinfo, groupinfo)
if(groupinfo & id) {
if(zp_get_user_zombie(id))
set_pev(ent, pev_groupinfo, groupinfo & ~id)
}
else {
if(!zp_get_user_zombie(id))
set_pev(ent, pev_groupinfo, groupinfo | id)
}
}
}
I tried that but it has paid me: /
Thanks for reading
__________________