NPC:OnNPCConnect
From SA-MP Wiki
Gets called when a NPC successfully connects to the server.
(myplayerid)
| myplayerid | The playerid the NPC has been given. |
| Returns | This function doesn't return a specific value |
public OnNPCConnect(myplayerid) { printf("I successfully connected the server with ID %i!", myplayerid); }
[edit]
Related Callbacks
The following callbacks might be useful as well, as they're related to this callback in one way or another.
- NPC:OnNPCDisconnect: Gets called when the NPC gets disconnected from the server.
- OnPlayerConnect: Called when a player connects to the server.
- OnPlayerDisconnect: Called when a player leaves the server.
