SetPlayerPos
#1

Hello, im connecting a npc called John(0) which connects on gamemode launch.
I don't want john to be in the virtual world 0, so i've tried to set his position and virtual world onplayerspawn.
What would be the best way to do this?
Reply
#2

When it spawns set its virtual world and position. Common sense.
Reply
#3

wow really?

Im not asking about the theory, but im asking how can i get the name or NPC id lol.
Reply
#4

OnPlayerConnect -> IsPlayerNPC -> strcmp GetPlayerName = John -> playerid = the npc id.

Well just change onplayerconnect to onplayerspawn if that's not what you mean.
Reply
#5

Thanks + rep <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)