HLMOD.HU Forrás Megtekintés - www.hlmod.hu
  1. #include <amxmodx>
  2. #include <fakemeta>
  3.  
  4. new g_FwdKeyValue;
  5.  
  6. public plugin_precache()
  7. {
  8. g_FwdKeyValue = register_forward( FM_KeyValue, "Forward_KeyValue" );
  9. }
  10.  
  11. public Forward_KeyValue( const EntIndex, const KvdHandle )
  12. {
  13. if ( pev_valid( EntIndex ) )
  14. {
  15. new szClassName[ 16 ];
  16. get_kvd( KvdHandle, KV_ClassName, szClassName, charsmax( szClassName ) );
  17.  
  18. if(!equal( szClassName, "weapon_knife" ) && !equal( szClassName, "weapon_usp" ) )
  19. {
  20. engfunc( EngFunc_RemoveEntity, EntIndex );
  21. return FMRES_SUPERCEDE;
  22. }
  23. }
  24.  
  25. return FMRES_IGNORED;
  26. }
  27.  
  28. public plugin_init()
  29. {
  30. register_plugin( "No Armoury", "1.0.0", "Arkshine" );
  31. unregister_forward( FM_KeyValue, g_FwdKeyValue );
  32. }