NPC:OnNPCConnect

From SA-MP Wiki

Jump to: navigation, search

NPC:OnNPCConnect


Warning: This NPC callback was added in SA-MP version 0.3. It is not available in previous versions.


Gets called when a NPC successfully connects to the server.


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


This function does not return a specific value.


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're related to this callback in one way or another.

Personal tools