note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
OnNPCDisconnect
Description
This callback is called when the NPC gets disconnected from the server.
Name | Description |
---|---|
reason[] | The reason why the bot has disconnected from the server |
Examples
public OnNPCDisconnect(reason[])
{
printf("Disconnected from the server. %s", reason);
}
Related Callbacks
The following callbacks might be useful, as they're related to this callback in one way or another.
- OnNPCConnect: This callback is called when the NPC successfully connects to the server.
- OnPlayerDisconnect: This callback is called when a player leaves the server.
- OnPlayerConnect: This callback is called when a player connects to the server.