NPC help....he is connected but can't "login/register"
#1

okay on the RP script i am using I have successfully made an NPC and he is in-game but it can't get past the Register/Login.
Reply
#2

Use "SetSpawnInfo" and "SpawnPlayer", that'll bypass everything from class selection to your login thing!
Reply
#3

idk how to do that cuz he has to pass the login thing
Reply
#4

Quote:
Originally Posted by Zach7
Посмотреть сообщение
idk how to do that cuz he has to pass the login thing
Usage of "SetSpawnInfo" and then "SpawnPlayer" will bypass the logging in!
Reply
#5

Yes but what do I do do I just put this under the?
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
or this under it
pawn Код:
if(IsPlayerNPC(playerid))
Cuz i am not sure of what to do?
Reply
#6

The first one is the correct one. Just add that before the login/register script.
Reply
#7

Before the dialog or where.
Reply
#8

Anybody help?
Reply
#9

pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Place that as first in the OnPlayerConnect
Reply
#10

Quote:
Originally Posted by Jari_Johnson*
Посмотреть сообщение
pawn Код:
if(IsPlayerNPC(playerid)) return 1;
Place that as first in the OnPlayerConnect
okay I did that here are first few lines of the OnPlayerConnect it still didn't work he is still floating in the sky HELP PLZ

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    InvalidNameCheck(playerid);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)