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 iPlayersCt[ MAX_PLAYERS ], iNumCt;
get_players( iPlayersCt, iNumCt, "ae", "CT" ) ;
if( iNumCt == 1 )
{
StripTerrosWeapons( );
}
}
public StripTerrosWeapons( )
{
new iPlayersCt[ MAX_PLAYERS ], iNumCt,id;
get_players( iPlayersCt, iNumCt, "ae", "TERRORIST" ) ;
for( new i; i < iNumCt; i++ )
{
id = iPlayersCt [ i ]
StripWeapons( id, Primary );
StripWeapons( id, Secondary );
StripWeapons( id, C4 );
}
}