NPC must skip the login - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: NPC must skip the login (
/showthread.php?tid=105193)
NPC must skip the login -
breakpaper - 28.10.2009
the NPC must skip the login
how must i do that?
Re: NPC must skip the login -
Eazy_Efolife - 28.10.2009
https://sampwiki.blast.hk/wiki/SetSpawnInfo
https://sampwiki.blast.hk/wiki/SpawnPlayer
Re: NPC must skip the login -
[NL]Bank - 28.10.2009
https://sampwiki.blast.hk/wiki/IsPlayerNPC
Re: NPC must skip the login -
JonyAvati - 28.10.2009
Use "IsPlayerNPC" for your login.
Re: NPC must skip the login -
breakpaper - 28.10.2009
can you make that script?
i don't get it!
Re: NPC must skip the login -
JonyAvati - 28.10.2009
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...
Re: NPC must skip the login -
Eazy_Efolife - 28.10.2009
This is the working code:
Код:
if (IsPlayerNPC(playerid))
{
SetSpawnInfo( playerid, 0, 0, x, y, z, angle, 0, 0, 0, 0, 0, 0 );
SpawnPlayer(playerid);
}
Re: NPC must skip the login -
[NL]Bank - 28.10.2009
Код:
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;
}
Re: NPC must skip the login -
breakpaper - 28.10.2009
where to place it?
Re: NPC must skip the login -
Eazy_Efolife - 28.10.2009
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;
}