NPC doesn't spawn/past login
#1

Hi I need some help here with an NPC i recorded
i followed KC's Tutorial

All works i tested it on Grandlarc but as soon as i putted the FS in and tried to run it on my GameMode
the bot Joins the server but seems like he doesen't spawn

Код:
[14:24:38] Incoming connection: 127.0.0.1:59062
[14:24:38] [npc:join] Paul_Mandon has joined the server (0:127.0.0.1)
[14:34:21] [npc:part] Paul_Mandon has left the server (0:2)
When i log on and do /goto 0 it will tell me "That player isnt spawned yet"
so i asume it has something to do in the OnPlayerSpawn or Maybe OnRequestPlayerClass

OnRequestPlayerClass
http://pastebin.com/4DHyqhtk

OnPlayerSpawn
http://pastebin.com/Nj7vYrWL

Hope someone can help me out would be greatfull
thank you.

Slice
Reply
#2

He doesent spawn at all or does he spawn and then gets throwed out of server?
Reply
#3

He doesn't spawn at all.
Reply
#4

Bump please I need this I tried almost everything
Reply
#5

Unless you are doing something in these publics do this..

pawn Код:
if(IsPlayerNPC(playerid)) return 0;
Under OnPlayerConnect
Under OnPlayerRequestClass
Under OnPlayerSpawn
Reply
#6

He doesn't get kicked now but this is what it shows:
[npc:join] Paul_Mandon has joined the server <0:127.0.0.1>
NPC: OnPlayerRequestClass: 0

But when i try /goto it says this player has not spawned yet

EDIT: The vehicle spawns now but the NPC doesn't
Reply
#7

Do you force users to register/login?
Edit: Just saw the pastebin link.
Reply
#8

Yes, as you saw
Reply
#9

is there a male and birthdate option? he will have to pybass that
Reply
#10

Did you find a fix for this..? My NPC connects but doesn't spawn... :/ basically the same problem
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)