Quote:
Originally Posted by Shadows Adi
You should use CS_TEAM_* to get team of the players.
|
Thanks
PHP Code:
// C:\PROGRA~1\COUNTE~4\cstrike\addons\amxmodx\SCRIPT~1\ad_Jailbreak.sma(10176) :
warning 211: possibly unintended assignment
Code:
while( ent = engfunc(EngFunc_FindEntityByString, ent, "classname", "info_player_deathmatch") ) // Line 10176
{
new ent2 =
1
pev
(ent, pev_origin, origin
)
while((ent2 = engfunc
(EngFunc_FindEntityInSphere, ent2, origin, radius
))) // find doors near T spawn
{
if(!pev_valid
(ent2
))
continue
pev
(ent2, pev_classname,
class, charsmax
(class))
if(!
equal(class,
"func_door")) // if it's not a door, move on to the next iteration
continue
pev
(ent2, pev_targetname, name, charsmax
(name
))
ent3 = engfunc
(EngFunc_FindEntityByString,
0,
"target", name
) // find button that opens this door
if(pev_valid
(ent3
) &&
(in_array
(ent3, found, sizeof
(found
)) <
1))
{
ExecuteHamB
(Ham_Use, ent3,
0,
0,
1,
1.0) // zomg poosh it
break // break from current while loop
}
}
}
Do you know a way to solve this problem?
__________________