NPC leaves 20 seconds after joining
#3

It hates this part, when I remove it.. It stays. As soon as I implement it again, it leaves

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Checks if the player that just spawned is an NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Getting the NPC's name.
    if(!strcmp(npcname, "SearchAndRescue", true)) //Checking if the NPC's name is MyFirstNPC
    {
      PutPlayerInVehicle(playerid, SearchAndRescueVehicle, 0); //Putting the NPC into the vehicle we created for it.
    }
    return 1;
  }
  //Other stuff for normal players goes here!
  return 1;
}
Reply


Messages In This Thread
NPC leaves 20 seconds after joining - by iklipse - 18.05.2010, 15:05
Re: NPC leaves 20 seconds after joining - by Conroy - 18.05.2010, 15:10
Re: NPC leaves 20 seconds after joining - by iklipse - 18.05.2010, 15:26
Re: NPC leaves 20 seconds after joining - by iklipse - 18.05.2010, 15:57

Forum Jump:


Users browsing this thread: 1 Guest(s)