View Single Post
deprale
Senior Member
Join Date: Oct 2018
Location: Leeds
Old 11-21-2022 , 00:18   Re: SoccerJam Goal Net hide (MAP & MOD)
Reply With Quote #2

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 
0sendcmd(1// visible yes
case 1sendcmd(0// visible no
}
}

public 
sendcmd(number)
{
while((
ent find_ent_by_class(ent,"soccerjam_goalnet")) != 0)
{
    
set_entity_visibility(entnumber)
}

__________________

Last edited by deprale; 11-21-2022 at 00:18.
deprale is offline