[Help] RP server NPC
#1

Hi why my NPC is joining the game and quickly left the server ?? my server is RP i think he can't login but how do i can the NPC auto login in to server ? sorry for my bad english

that's is FS
|
|
v

Код:
#define FILTERSCRIPT

#include <a_samp>

#if defined FILTERSCRIPT

new Beagle; 

public OnFilterScriptInit()
{
  print("Beagle Flyer By Mozilla Firfox Loaded.");
  ConnectNPC("Beagle","Beagle");
  Beagle = CreateVehicle(511, 0.0, 0.0, 5.0, 0.0, 6, 0, 5000);
  return 1;
}

public OnFilterScriptExit()
{
  print("Beagle Flyer Unloaded.");
	return 1;
}

#else
#endif

public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Beagle", true))
    {
      PutPlayerInVehicle(playerid, Beagle, 0);
    }
    return 1;
  }
  return 1;
}
Reply
#2

Just add at the login public
pawn Код:
If(IsPlayerNPC(playerid)) return 1;
Reply
#3

Quote:
Originally Posted by matrix_smq
Just add at the login public
pawn Код:
If(IsPlayerNPC(playerid)) return 1;
not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)