| DSASDFGH |
08-25-2012 00:53 |
Semiclip Problems :(
PHP Code:
#include < amxmodx > #include < engine > #include < cstrike > #include < fun > #include < fakemeta > #include < hamsandwich > new g_iSemiClip[33]; public plugin_init( ) { new const VERSION[ ] = "3.0.3"; register_plugin( "Deathrun Manager", VERSION, "xPaw" ); register_forward( FM_StartFrame, "FwdStartFrame", 0 ); register_forward( FM_AddToFullPack, "FwdFullPack", 1 ); } public FwdStartFrame( ) { static iPlayers[ 32 ], iNum, iPlayer, iPlayer2, i, j; get_players( iPlayers, iNum, "ache", "CT" ); arrayset( g_iSemiClip, 0, 32 ); if( iNum <= 1 ) return FMRES_IGNORED; for( i = 0; i < iNum; i++ ) { iPlayer = iPlayers[ i ]; for( j = 0; j < iNum; j++ ) { iPlayer2 = iPlayers[ j ]; if( iPlayer == iPlayer2 ) continue; if( g_iSemiClip[ iPlayer ] && g_iSemiClip[ iPlayer2 ] ) continue; if( entity_range( iPlayer, iPlayer2 ) < 50) { g_iSemiClip[ iPlayer ] = true; g_iSemiClip[ iPlayer2 ] = true; } } } for( i = 0; i < iNum; i++ ) { iPlayer = iPlayers[ i ]; set_pev( iPlayer, pev_solid, g_iSemiClip[ iPlayer ] ? SOLID_NOT : SOLID_SLIDEBOX ); } return FMRES_IGNORED; } public FwdFullPack( es, e, ent, host, flags, player, pSet ) { if( player && g_iSemiClip[ ent ] && g_iSemiClip[ host ] ) { set_es( es, ES_Solid, SOLID_NOT ); set_es( es, ES_RenderMode, kRenderTransAlpha ); set_es( es, ES_RenderAmt, 85 ); } return FMRES_IGNORED; }
Hi, I coded this plugin from Deathrun manager by xPaw for my zombie escape server,
but entity like func_vehicle , func_door won't work if players got semiclip.
Please give me a solution :cry:
p.s. Also I got a sama problem as use Semiclip modules...
|