AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ham_Blocked (https://forums.alliedmods.net/showthread.php?t=74257)

danielkza 07-15-2008 00:51

Ham_Blocked
 
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

Xel0z 07-15-2008 08:40

Re: Ham_Blocked
 
Shouldnt u register it through Ham_Touch and then check if the player gets blocked?


All times are GMT -4. The time now is 05:34.

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