Specific player can touch only specific entity
I have this plugin
PHP Code:
I know that function shgive_item is missing, there is nothing that I could change to make this plugin as I want. |
Re: Specific player can touch only specific entity
Set pev_owner to the user that should be able to pick it up and then compare pev_owner in the touch forward. Also why do you set EF_NODRAW and SOLID_NOT and only delete the entities on new round? You should delete them immediately.
/edit: SpeeDeeR is correct. You would probably want to use pev_iuser. |
Re: Specific player can touch only specific entity
Setting pev_owner will make the box not interactable with the owner. You could use groupinfo or if you want all players to see the box, set the killers index in a costume pev, like iuser, and check it on touch.
|
Re: Specific player can touch only specific entity
@Nextra This plugin isn't made by me... box disappear automatically when somebody touch it.
@SpeeDeeR I have no ideea about what are you talking about, and example would be great. |
Re: Specific player can touch only specific entity
Quote:
|
Re: Specific player can touch only specific entity
That topic is dead, I can modify it...
I tried with pev_owner, but as far as I know, the entity will be automatically set set_pev(touched, pev_solid, SOLID_NOT) for owner. This mean that the owner can't touch the box, it will walk trough it. Function public fwd_Touch(toucher, touched) will not work for owner, so the owner can't receive the bonus. |
Re: Specific player can touch only specific entity
Quote:
|
Re: Specific player can touch only specific entity
Thank you!
|
Re: Specific player can touch only specific entity
Quote:
set_pev(ent, pev_iuser1, id); if(pev(ent, pev_iuser1) == id); |
| All times are GMT -4. The time now is 21:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.