what does it do ?
Code:
#define OFFSET_PRIMARYWEAPON 116
If I put it in my code of Days, This will help against weapons bug?
2: if i want block take weapon from gun room and pick up should i add this:
Code:
RegisterHam( Ham_Touch, "armoury_entity", "Ham_WeaponTouch_Pre", 0 );
RegisterHam( Ham_Touch, "weaponbox", "Ham_WeaponTouch_Pre", 0 );
and check if player alive?
Code:
if( !is_user_alive( client ) )
return HAM_IGNORED;
3: What is different:
Code:
get_players (iPlayers, iNum, "aceh", "TERRORIST");
>>
Code:
get_players (iPlayers, iNum, "ae", "TERRORIST");
any check if T alive? i just want check if less 2 player alive no start day
if ( g_iCurrentDay == DAY_NONE )
EDIT: get warning
Code:
static iPlayers[ 32 ], iNum;
get_players( iPlayers, iNum, "ae", "TERRORIST" );
if ( iNum == 1 )
{
ColorChat( 0, NORMAL, "There are not enough^x03 Prisoners^x01 alive to start this day." );
g_iCurrentDay == DAY_NONE;
return;
}
Code:
Warning: Expression has no effect
__________________