Raised This Month: $ Target: $400
 0% 

Strip User Weapons Last CT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-25-2014 , 11:27   Re: Strip User Weapons Last CT
Reply With Quote #10

DeathMsg doesn't have arguments passed into the header of the function,you get them with read_data.

PHP Code:
#include < amxmodx >
#include < cstrike >
#include < stripweapons >

#define VERSION "1.2"
#define MAX_PLAYERS 32

public plugin_init( )

    
register_plugin"Strip Weapons Last CT"VERSION"Imag!ne" )
    
    
register_event"DeathMsg""Event_DeathMsg""a" );
}

public 
Event_DeathMsg( )
{
    new 
iPlayersCtMAX_PLAYERS ], iNumCt;
    
get_playersiPlayersCtiNumCt"ae""CT" ) ;
    
    if( 
iNumCt == )
    {
        
StripTerrosWeapons( );
    }
}

public 
StripTerrosWeapons(  )
{
    new 
iPlayersCtMAX_PLAYERS ], iNumCt,id;
    
get_playersiPlayersCtiNumCt"ae""TERRORIST" ) ;
    
    for( new 
iiNumCti++ ) 
    {
        
id iPlayersCt ]
        
StripWeaponsidPrimary );
        
StripWeaponsidSecondary );
        
StripWeaponsidC4 );
        
    }


Last edited by HamletEagle; 07-27-2014 at 04:57. Reason: Fixed variable name.
HamletEagle is offline
 



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 13:05.


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