NPC:OnNPCSpawn
From SA-MP Wiki
Description:
Gets called when a NPC spawned.
(NoParam)
Return Values:
This function does not return any specific values.
public OnNPCSpawn() { print("NPC spawned"); SendChat("Hello World. I'm a bot."); return 1; }