NPC must skip the login
#1

the NPC must skip the login
how must i do that?
Reply
#2

https://sampwiki.blast.hk/wiki/SetSpawnInfo
https://sampwiki.blast.hk/wiki/SpawnPlayer
Reply
#3

https://sampwiki.blast.hk/wiki/IsPlayerNPC
Reply
#4

Use "IsPlayerNPC" for your login.
Reply
#5

can you make that script?
i don't get it!
Reply
#6

Quote:
Originally Posted by breakpaper
can you make that script?
i don't get it!
pawn Код:
public OnPlayerConnect(playerid)
{
  if (IsPlayerNPC(playerid))
  {
    return 1;
    else
    {
The content here, etc...
Reply
#7

This is the working code:

Код:
if (IsPlayerNPC(playerid))
{
    SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 );
    SpawnPlayer(playerid);
}
Reply
#8

Код:
public OnPlayerRequestSpawn(playerid)
{
	if(IsPlayerNPC(playerid)) return 1;
    // Here your functions...
	return 1;
}

public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    // Here your functions...
    return 1;
}
Reply
#9

where to place it?
Reply
#10

Quote:
Originally Posted by Compton's Eazy E
This is the working code:

Код:
if (IsPlayerNPC(playerid))
{
    SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 );
    SpawnPlayer(playerid);
}
Put that code i gave you, under onplayerrequestclass
so it will look like this

Код:
public OnPlayerRequestClass(playerid, classid)
{
  if (IsPlayerNPC(playerid))
  {
    SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 );
    SpawnPlayer(playerid);
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)