Raised This Month: $ Target: $400
 0% 

Ham_Blocked


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danielkza
AMX Mod X Plugin Approver
Join Date: May 2007
Location: São Paulo - Brasil
Old 07-15-2008 , 00:51   Ham_Blocked
Reply With Quote #1

Does anybody know if Ham_Blocked works? I tried this:
Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
    RegisterHam(Ham_Blocked,"player","fwPlayerBlocked")

public fwPlayerBlocked(id,blocker) {
    server_print("block %d %d",id,blocker)
    if(is_user_alive(id) && is_user_alive(blocker))
        return HAM_SUPERCEDE
    
    return HAM_IGNORED
}
And got nothing... Any help would be appreciated.

Thank you

Last edited by danielkza; 07-15-2008 at 00:52. Reason: Forgot to end the [code]
danielkza is offline
Xel0z
Senior Member
Join Date: Apr 2006
Location: Netherlands
Old 07-15-2008 , 08:40   Re: Ham_Blocked
Reply With Quote #2

Shouldnt u register it through Ham_Touch and then check if the player gets blocked?
__________________
Heroes: TESS-One Working on: Grit (Fixing bugs)
Xel0z is offline
Send a message via MSN to Xel0z
Reply



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 05:34.


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