NPCs are not connecting.
#1

i have 3 npcs. I cant add the 'maxnpc 3' in the server.cfg because serverffs will delete that line.

If i check the logs, they are connecting, but wont get in the server:

Код:
[18:01:15] Incoming connection: 67.228.177.42:51624
[18:01:15] Incoming connection: 67.228.177.42:50138
[18:01:15] Incoming connection: 67.228.177.42:38461
i've checked the code, its all there. I'm connecting them all with ConnectNPC, and the all the npc files are there. Why are my npcs not connecting?
Reply
#2

let me ask, how did you get a 0.3 server with serverffs?
Reply
#3

if you have a serverffs server already, ask them to turn it into a 0.3 server.
Reply
#4

well, make sure if they need to be in a vehicle you have made one for them to go in, the server hasnt got a register before spawn script.
Reply
#5

im putting them in the cars.
Reply
#6

make sure the .rec files are in /npcmodes/recordings/

make sure all filterscripts are in the filterscript folder.

make sure all npcmodes are in the npcmodes folder.

make sure the recording file names have no spaces.
Reply
#7

Quote:
Originally Posted by √№ceC№ty
make sure the .rec files are in /npcmodes/recordings/

make sure all filterscripts are in the filterscript folder.

make sure all npcmodes are in the npcmodes folder.

make sure the recording file names have no spaces.
All files are where they are supposed to be.
Reply
#8

mind if i see part of your script?
Reply
#9

Код:
new heli,shamal;

OnGameModeInit:

heli = CreateVehicle(487,0,0,0,0,0,0,10000);
shamal = CreateVehicle(519,0,0,0,0,0,0,10000);

ConnectNPC("HeliTour","helitour");
ConnectNPC("PlaneTour","shamal");

OnPlayerSpawn:

if(IsPlayerNPC(playerid))
	  {
	  if(!strcmp(name, "HeliTour", true,8))
			{
			PutPlayerInVehicle(playerid,heli,0);
			}
  		if(!strcmp(name, "PlaneTour", true,9))
			{
			PutPlayerInVehicle(playerid,shamal,0);
			}
		}
Reply
#10

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(!IsPlayerNPC(playerid)) return 0;

    new playername[64];
    GetPlayerName(playerid,playername,64);

    if(!strcmp(playername,"HeliTour",true)) {
    PutPlayerInVehicle(playerid,heli,0);
    }
    else if(!strcmp(playername,"PlaneTour",true)) {
      PutPlayerInVehicle(playerid,shamal,0);
    }
    return 1;
}
check other peoples scripts next time and see what your doing wrong, helped me alot when i 1st started pawn.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)