NPC:OnNPCConnect

From SA-MP Wiki

Jump to: navigation, search


NPC:OnNPCConnect was added in SA-MP 0.3a This NPC callback was added in SA-MP 0.3a and will not work in earlier versions!


Description:

Gets called when a NPC successfully connects to the server.


Parameters:
(myplayerid)
myplayeridThe playerid the NPC has been given.


Return Values:

This function does not return any specific values.


public OnNPCConnect(myplayerid)
{
    printf("I successfully connected the server with ID %i!", myplayerid);
}

Related Callbacks

The following callbacks might be useful as well, as they are related to this callback in one way or another.

  • OnNPCDisconnect: Gets called when the NPC gets disconnected from the server.
Personal tools
In other languages