Raised This Month: $ Target: $400
 0% 

Weaponent touch


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Snitch
Veteran Member
Join Date: Sep 2013
Location: Kazakhstan
Old 09-20-2015 , 16:23   Weaponent touch
Reply With Quote #1

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
__________________
Қазақстан Республикасы

Last edited by Snitch; 09-20-2015 at 16:27.
Snitch is offline
Send a message via Skype™ to Snitch
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:16.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode