Quote:
Originally Posted by fysiks
Your implementation of _CurWeapon() looks like it should work.
Your implementation of _MakeInvis() is not equivalent to the original code and does not match what I said. However, I just noticed that even the original implementation of _MakeInvis() is not correct because there is no "id" passed to the function. Also, you return the set_user_rendering() which means that it will only set rendering for one player. If you did not mean to do this then you should remove the return there.
So, it likely should be like this:
Code:
get alive terrorist players
loop through players[]
if NoKnife[ id ] == 0
set rendering
|
now?
Code:
public _MakeInvis( id )
{
new players[32], asd
get_players( players, asd, "ae", "TERRORIST" )
if( asd == 1 )
for(new i = 0; i < players[ 0 ] i++)
if( NoKnife[ i ] == 0 && is_user_alive( i ) )
set_user_rendering( i, kRenderFxNone, 0, 0, 0, kRenderTransAlpha , 0 )
return PLUGIN_HANDLED
}