Quote:
Originally Posted by Naydef
Where "AFKM_OnAFKEvent" is defined in the *.inc file? I can't find it. I'm sure that I downloaded afk_manager.inc for v4!
|
Yeah I was wanting to get some feedback from some plugin developers on how they wanted to see this implemented before I made an official publish but the code is currently there in part, may not have full functionality.
Forward is as follows:
Code:
/**
* Called when an AFK event fires.
*
* @param name This is the name of the AFK event.
*
* Event Names:
*
* "afk_spawn_move" - Event fired when a client should be moved to spectator for Spawn AFK.
* "afk_move" - Event fired when a client should be moved to spectator for normal AFK.
* "afk_kick" - Event fired when a client should be kicked.
*
* @param client The client index of the client in the event.
* @return Plugin_Continue to complete event.
*/
forward Action AFKM_OnAFKEvent(const char[] name, int client);
If you want to do some testing and provide some feedback I guess I can look at officially releasing the include file. I think I still need to add some code to how to handle other return values though so might also need a new release of the plugin to finalize.
I just don't want to release prematurely and then have it change afterwards and break peoples code.
Previous reference which has information:
https://forums.alliedmods.net/showpo...postcount=1693