NPC problem
#1

Please help with what there can be a problem. I have made FS npc for the server on a sample from gl_npcs.pwn. But when I load a server with it FS the train which LV goes only. Other two boats (train LS and SF) stand on the spawn. What there can be a problem? I use the modifed Godfather gamemode. I am below shown my FS:


Код:
#include <a_samp>
public OnFilterScriptInit()
{
	ConnectNPC("LSTrain","train_ls");
	ConnectNPC("SFTrain","train_sf");
	ConnectNPC("LVTrain","train_lv");
	return 1;
}


public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) 
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "LSTrain", true)) 
    {
      PutPlayerInVehicle(playerid,429,0);
      SetPlayerColor(playerid,0xFFFFFFFF);
      return 1;
    }
    if(!strcmp(npcname, "SFTrain", true))
    {
      PutPlayerInVehicle(playerid,425,0);
      SetPlayerColor(playerid,0xFFFFFFFF);
      return 1;
    }
    if(!strcmp(npcname, "LVTrain", true))
    {
      PutPlayerInVehicle(playerid,421,0);
	  SetPlayerColor(playerid,0xFFFFFFFF);
      return 1;
    }
    return 1;
  }
  //Other stuff for normal players goes here!
  return 1;
}
Reply


Messages In This Thread
NPC problem - by PawnNewCommer - 04.10.2009, 12:14
Re: NPC problem - by V1ceC1ty - 04.10.2009, 16:13
Re: NPC problem - by PawnNewCommer - 04.10.2009, 19:00
Re: NPC problem - by TheNooB - 04.10.2009, 19:03
Re: NPC problem - by PawnNewCommer - 04.10.2009, 19:22

Forum Jump:


Users browsing this thread: 1 Guest(s)