Raised This Month: $ Target: $400
 0% 

[SOLVED] Ham Touch doesn't work on POD BOT-s :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-12-2009 , 16:26   Re: Ham Touch doesn't work on POD BOT-s :(
Reply With Quote #6

The following code works fine with PodBots, means that the problem is somewhere in your code, you may try to supercede the forward and fire another touch.

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

#define PLUGIN "Detect c4"
#define AUTHOR "ConnorMcLeod"
#define VERSION "0.0.1"

#define IsPlayer(%1)    ( 1 <= %1 <= g_iMaxPlayers )

new g_iMaxPlayers

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)

    
g_iMaxPlayers get_maxplayers()
    
RegisterHam(Ham_Touch"weapon_c4""C4_Touch")
}

public 
C4_Touch(iEntid)
{
    if( 
IsPlayer(id) )
    {
        
client_print(0print_chat"C4 touched by %d"id)
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 02:28.


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