SA-MP Forums Archive
[Ajuda] NPC conecta mas nгo entra no carro - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] NPC conecta mas nгo entra no carro (/showthread.php?tid=656623)



NPC conecta mas nгo entra no carro - Cleyson - 20.07.2018

Boa noite galera, alguйm que entenda de NPC ai ?

Estou tentando colocar um pra voar aqui, mas mesmo usando a gravaзгo original
do samp server o danado nгo entra. Ate entra no servidor, mas nгo comeзa a gravaзгo.

PHP код:
#include <a_samp>
new NPC;
public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" npc carregado com sucesso");
    print(
"--------------------------------------\n");
    
ConnectNPC("Piloto""at400_ls");   
    
NPC CreateVehicle(5770.00.05.00.0335000);
    return 
1;
}
public 
OnPlayerSpawn(playerid)
{
    if(
IsPlayerNPC(playerid)) 
      {
          new 
npcname[MAX_PLAYER_NAME];
        
GetPlayerName(playeridnpcnamesizeof(npcname));
        if(!
strcmp(npcname"Piloto"true))
        {
            
SetPlayerSkin(playerid255);
              
PutPlayerInVehicle(playeridNPC0); 
        }
      }
    return 
1;

log:
PHP код:
[19/07/2018 21:40:53Number of vehicle models24
[19/07/2018 21:40:54] [connectionincoming connection127.0.0.1:51837 id0
[19/07/2018 21:40:54] [npc:joinPiloto has joined the server (0:127.0.0.1