10.12.2011, 15:18
hi all my NPCs are joining then leaveing how do i fix this
public OnPlayerConnect(playerid)
{
if (IsPlayerNPC(playerid))
{
return 1;
}
}
Check the reason of leave (from server_log.txt), if it's 2 (kick) so the post above should fix the problem.
NPCs are almost exactly like regular players. OnPlayerConnect and the rest of the public functions affects them. |