https://github.com/Doondook/soccerja...m%2B.sma#L4844
https://github.com/Doondook/soccerja...m%2B.sma#L4852 ->> entityname
Method number 1: Modify the plugin directly and add a button or bind to set_entitiy_visibility(endzone, 1)
Method number 2: Make another plugin (Cringe)
You just have to find the entity and set the flag EF_NODRAW or just use engine like the og plugin since you're already using it.
PHP Code:
#include engine
public plugin_init()
{
makeamenuhere
}
public menulol() {
switch keypress {
case 0: sendcmd(1) // visible yes
case 1: sendcmd(0) // visible no
}
}
public sendcmd(number)
{
while((ent = find_ent_by_class(ent,"soccerjam_goalnet")) != 0)
{
set_entity_visibility(ent, number)
}
}
__________________