Raised This Month: $ Target: $400
 0% 

I am idiot or Ham_Spawn fails


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-31-2009 , 06:58   I am idiot or Ham_Spawn fails
Reply With Quote #1

Okay i am hooking func_water spawn though hamsandwich and was wondering why the f*ck it detects water too?! i have hooking door spawns too but its 2nd forward and other callback =\

PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

public plugin_init( ) {
    
register_plugin"Water + Door = wtf?""1.0""Bitch" );
}

public 
plugin_precache( ) {
    
RegisterHamHam_Spawn"func_water""fwdHamSpawn_Water");
    
RegisterHamHam_Spawn"func_door""fwdHamSpawn_Door");
}

public 
fwdHamSpawn_WateriEntity ) {
    new 
szClassname32 ];
    
peviEntitypev_classnameszClassname31 );
    
    
log_amx"fwdHamSpawn_Water() :: %i :: %s"iEntityszClassname );
    
// looked entity numbers though shptools its doors -_-"
}

public 
fwdHamSpawn_DooriEntity ) {
    new 
szClassname32 ];
    
peviEntitypev_classnameszClassname31 );
    
    
log_amx"fwdHamSpawn_Door() :: %i :: %s"iEntityszClassname );
    
    static const 
szNull[] = "common/null.wav";
    if( 
peviEntitypev_dmg ) ) {
        
set_peviEntitypev_noise1szNull );
        
set_peviEntitypev_noise2szNull );
        
set_peviEntitypev_noise3szNull );
    }

Code:
L 05/31/2009 - 14:21:39: -------- Mapchange to cs_assault --------
L 05/31/2009 - 14:21:41: [1.amxx] fwdHamSpawn_Water() :: 130 :: func_door
L 05/31/2009 - 14:21:41: [1.amxx] fwdHamSpawn_Door() :: 130 :: func_door
L 05/31/2009 - 14:21:41: [1.amxx] fwdHamSpawn_Water() :: 131 :: func_door
L 05/31/2009 - 14:21:41: [1.amxx] fwdHamSpawn_Door() :: 131 :: func_door
__________________

Last edited by xPaw; 05-31-2009 at 07:26.
xPaw 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 22:31.


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