Page 1 of 1

Remove c4

Posted: 2012 Apr 09 19:50
by Pukuotukas951
Gal yra koks cs 1.6 pluginas kuris pašalina c4 iš serverio? Nes kur ieškojau alliedmodders buvo tik scourse CSS

Re: Remove c4

Posted: 2012 Apr 09 20:01
by newb

Code: Select all

#include < amxmodx >#include < engine > public plugin_init( ) {    register_plugin( "Delete Bomb Sites", "0.0.1", "Exolent" );} public pfn_keyvalue( iEntity ) {    static szClassName[ 32 ], szKey[ 2 ], szValue[ 2 ];    copy_keyvalue( szClassName, charsmax( szClassName ), szKey, charsmax( szKey ), szValue, charsmax( szValue ) );        if( !strcmp( szClassName, "func_bomb_target" )    ||  !strcmp( szClassName, "info_bomb_target" ) ) {        if( is_valid_ent( iEntity ) ) {            remove_entity( iEntity );        }    }}

Re: Remove c4

Posted: 2012 Apr 09 20:08
by Pukuotukas951
neveikia

Re: Remove c4

Posted: 2012 Apr 09 20:10
by newb
Veikia.

Re: Remove c4

Posted: 2012 Apr 09 20:16
by Pukuotukas951
Įdėjau į serverį, tačiau vistiek duoda c4.

Re: Remove c4

Posted: 2012 Apr 09 20:17
by newb
Pats patikrinau dust, dust2, inferno. Neduoda.

Re: Remove c4

Posted: 2012 Apr 09 20:51
by nuodas159
Jeigu neveikia bandyk šita.

Code: Select all

 #include < amxmodx >#include < fakemeta > new g_iSpawn; public plugin_precache( )  g_iSpawn = register_forward( FM_Spawn, "Spawn" ); public plugin_init( )  unregister_forward( FM_Spawn, g_iSpawn ); public Spawn( iEntity ){  if( pev_valid( iEntity ) )  {    static cName[ 32 ];    pev( iEntity, pev_classname, cName, 31 );     if( containi( cName, "bomb" ) != -1 )      engfunc( EngFunc_RemoveEntity, iEntity );  }}