View Single Post
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-28-2011 , 12:39   Re: Reload Animation Fix
Reply With Quote #10

For example a plugin that would switch a player from Ts to Spectator, your plugin could think he is still alive.


Just saying that
PHP Code:
new g_iAlive;
#define SetPlayerBit(%1,%2)    ( %1 |=  ( 1 << ( %2 & 31 ) ) )
#define ClearPlayerBit(%1,%2)  ( %1 &= ~( 1 << ( %2 & 31 ) ) )
#define CheckPlayerBit(%1,%2)  ( %1 &   ( 1 << ( %2 & 31 ) ) ) 
Would be better like :
PHP Code:
new g_iAlive;
#define MarkPlayerAlive(%0)    ( g_iAlive |=  ( 1 << ( %0 & 31 ) ) )
#define ClearPlayerAlive(%0)  ( g_iAlive &= ~( 1 << ( %0 & 31 ) ) )
#define CheckPlayerAlive(%0)  ( g_iAlive &   ( 1 << ( %0 & 31 ) ) ) 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline