[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(577, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid))
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname));
if(!strcmp(npcname, "Piloto", true))
{
SetPlayerSkin(playerid, 255);
PutPlayerInVehicle(playerid, NPC, 0);
}
}
return 1;
}
log:
PHP код:
[19/07/2018 21:40:53] Number of vehicle models: 24
[19/07/2018 21:40:54] [connection] incoming connection: 127.0.0.1:51837 id: 0
[19/07/2018 21:40:54] [npc:join] Piloto has joined the server (0:127.0.0.1)