[AJUDA] Npcs (taxi boot)
#1

SALVE GALERA...BOMDIA/TARDE/NOITE

ESTOU FAZENDO UM GM..TAVA PENSSANDO EM COLOCAR UM TAXI BOOT
PQ CASO OS PLAYERS PERCAM O ONIBUS TEM UM TAXI PRA ELES...
INTAO
ACHEI UM TUTORIAL
MAIS AINDA NAO CONSEGUI COLOCAR O NPC
FIZ PASSO A PASSO OQ TEM NESSE TUTORIAL ==> https://sampforum.blast.hk/showthread.php?tid=109701

( des de domingo que estou tentando colocar)

O NPC CARREGA [npcart] MeuPrimeiroNPC has left the server (0:0)
MAIS ELE NAO APARECE NO SERVIDOR

SE ALGUEM PODER ME AJUDAR
AGRADEЗO DES DE JA!

+RP
Reply
#2

VIX NAO SEI OQ DEU

AS LETRA SE ESPAHO TUDO :X

RESUMINDO

QUERIA UMA AJUDA PRA CRIAR TAXI NPC
VLW
Reply
#3

Seguinte amigo, ele estб saindo do GM por falha na conxгo.

O gm usa Login? (O login pode estar "travando" o bot)
Coloque em baixo dos callbacks "OnPlayerConnect" , "OnPlayerSpawn" e OnPlayerRequestClass" essa linha:
Код:
if(IsPlayerNPC(playerid))return 1;
Msn: dark_eagn@hotmail.com
Reply
#4

seguinte mano
fui tentar isso la agora
apareceu isso

[npc:join] MeuPrimeiroNPC has joined the server (0:127.0.0.1)

mais novamente nao tava la
Reply
#5

Confere se ele fica conectado ou se depois de um tempo aparece

[npc:left] MeuPrimeiroNPC has left the server (0:127.0.0.1)
Reply
#6

Confira se voce fez todas essas etapas:

https://sampforum.blast.hk/showthread.php?tid=109701
Reply
#7

vix mano continua a mesmo coisa eu fiz passo a passo
Reply
#8

[pawn] public OnGameModeInit()
{
print("carregando taxi......");
ConnectNPC("taxi","taxi");
//--//
print("taxi");
ConnectNPC("taxi","taxi");
MeuPrimeiroNPCVehicle = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}

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, "taxi", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
{
PutPlayerInVehicle(playerid, taxi, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
SetPlayerSkin(playerid, 295);
}
return 1;
}[pawn/]
Reply
#9

pawn Код:
public OnGameModeInit()
{
print("carregando taxi......");
ConnectNPC("taxi","taxi");
//--//
print("taxi");
ConnectNPC("taxi","taxi");
MeuPrimeiroNPCVehicle = CreateVehicle(420, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}

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, "taxi", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
{
PutPlayerInVehicle(playerid, taxi, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
SetPlayerSkin(playerid, 295);
}
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)