[Ajuda] NPC nгo da Spawn
#4

Quote:
Originally Posted by eNtinityGaming
Посмотреть сообщение
Adicionei e mesmo assim o NPC nгo spawna, sу conecta no server.
Para mas informaзao Segue Link: https://sampforum.blast.hk/showthread.php?tid=109701
Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid)) //Verifica se o jogador й um NPC.
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
    if(!strcmp(npcname, "MeuPrimeiroNPC", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
    {
      PutPlayerInVehicle(playerid, MeuPrimeiroNPCVehicle, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
    }
    return 1;
  }
  //Outras coisas para os jogadores normais vai aqui!
  return 1;
}
Reply


Messages In This Thread
NPC nгo da Spawn - by eNtinityGaming - 02.02.2014, 20:56
Re: NPC nгo da Spawn - by kevinho.007 - 02.02.2014, 21:06
Re: NPC nгo da Spawn - by eNtinityGaming - 02.02.2014, 22:16
Re: NPC nгo da Spawn - by kevinho.007 - 02.02.2014, 22:34
Re: NPC nгo da Spawn - by eNtinityGaming - 02.02.2014, 22:41
Re: NPC nгo da Spawn - by kevinho.007 - 02.02.2014, 22:49
Re: NPC nгo da Spawn - by eNtinityGaming - 02.02.2014, 22:51
Re: NPC nгo da Spawn - by rjjj - 02.02.2014, 23:18
Re: NPC nгo da Spawn - by eNtinityGaming - 02.02.2014, 23:38
Re: NPC nгo da Spawn - by DannielCooper - 03.02.2014, 00:53

Forum Jump:


Users browsing this thread: 7 Guest(s)