View Single Post
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-15-2006 , 21:06   Re: Fakemeta General Usage
Reply With Quote #6

Quote:
Originally Posted by Bad_Bud View Post
So in essence, anything that can be called in engine.inc can be called from fakemeta?

What would be an example of a killblocking function that uses fakemeta instead of client_kill(id)?
Ask somewhere else next time, but for now:

Code:
// in plugin_init:
register_forward(FM_ClientKill,"ForwardClientKill")
Code:
public ForwardClientKill(id)
{
    // return FMRES_IGNORED /* lets kill go through */
    return FMRES_SUPERCEDE /* blocks kill */
}
__________________
Hawk552 is offline
Send a message via AIM to Hawk552