Declaration |
Description |
void ExpansionInfo() |
Called when the extension info is requested by AFBase, this is where you define the properties |
void ExpansionInit() |
Called when plugin inits, same as PluginInit() |
void MapInit() |
Called when map inits, same as MapInit() |
void RegisterCommand(string sCommand, string sReqArgs, string sDescription, int iAccess, callback) |
Register command, see tutorial |
void RegisterCommand(string sCommand, string sReqArgs, string sDescription, int iAccess, callback, int iFlags) |
Register command, see tutorial |
void RegisterExpansion(AFBaseClass) |
Registers expansion, see tutorial |
void ClientConnectEvent(CBasePlayer@ pUser) |
Called when player connects |
void ClientDisconnectEvent(CBasePlayer@ pUser) |
Called when player disconnects |
void NameChangeEvent(AFBase::AFBaseUser@ afbUser) |
Called when player changes his name, sNick and sOldNick has already been updated |
void StopEvent() |
Called when extension is stopped |
void StartEvent() |
Called when extension is started |
void SendMessage(string sReceiverShortName, string sIdentifier, dictionary dData) |
Send message to another extension, use "*" as sReceiverShortName for broadcast |
void ReceiveMessageEvent(string sSenderShortname, string sIdentifier, dictionary dData) |
Message receive event |
void Log(string sInput) |
Logs to server, textformat: [shortname] + sInput + \n |
void Tell(string sInput, CBasePlayer@ pUser, HUD targetHud) |
prints to client, textformat: [shortname] + sInput + \n |
void TellLong(string sInput, CBasePlayer@ pUser, HUD targetHud) |
prints to client. This one works around clientprint max character limit, textformat: [shortname] + sInput + \n |
void TellAll(string sInput, HUD targetHud) |
prints to all clients. textformat: [shortname] + sInput + \n |