public OnPlayerConnect(playerid) { if (IsPlayerNPC(playerid)) { SendClientMessageToAll(0x00000000,"A new NPC connected!"); return 1; } }