instead of :
if( is_hull_vacant( origin, hullIndex, playerIndex ) )
Put in your code :
if( ! trace_hull(origin, hullIndex, playerIndex, 0) )
http://www.amxmodx.org/funcwiki.php?go=func&id=364
tracehull return is :
+1 if fStartSolid
+2 if fAllSolid
+4 if !fInOpen (that one was missing in your stock)
So if it returns 0, the place if free ;)
If you still don't want to check fInOpen, just do if( ~trace_hull(...) & 3 )
__________________