Remove c4
Posted: 2012 Apr 09 19:50
Gal yra koks cs 1.6 pluginas kuris pašalina c4 iš serverio? Nes kur ieškojau alliedmodders buvo tik scourse CSS
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 ); } }}
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 ); }}