警告
回调是在SA-MP 0.3a中添加的,在早期版本中不起作用!

描述

当 NPC 生成时会调用此回调。

例子

  1. public OnNPCSpawn()
  2. {
  3. print("NPC spawned");
  4. SendChat("Hello World. I'm a bot.");
  5. return 1;
  6. }