NPC Keeps leaving - 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 Keeps leaving (
/showthread.php?tid=210519)
NPC Keeps leaving -
Swiftz - 13.01.2011
I made NPC, it keeps leaving every-time i turn the server on. I have login/register dialog type system. Is this affecting the npc if so how can i solve this problem
Re: NPC Keeps leaving -
iggy1 - 13.01.2011
pawn Код:
if(IsPlayerNpc(playerid))return 0;
At the top of all the callbacks which could be effecting it.
Re: NPC Keeps leaving -
Swiftz - 17.01.2011
'Bump' It couldn't help any ideas it keeps leaving the server
Re: NPC Keeps leaving - [L3th4l] - 17.01.2011
pawn Код:
public OnPlayerConnect(..)
{
if(IsPlayerNPC(playerid)) return 1;
// Rest of code..
return 1;
}
Re: NPC Keeps leaving -
Leeroy. - 17.01.2011
pawn Код:
public OnPlayerConnect(..)
{
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid)
return 1;
}
return 1;
}
Also set your server.cfg max_npcs to 1 or w/e.
Re: NPC Keeps leaving -
Swiftz - 17.01.2011
It worked guys thanks alot luv ya
Re: NPC Keeps leaving -
Swiftz - 17.01.2011
Do you have any idea why an yellow dot is appearing on my minimap of that NPC , how can i remove it that npc is appearing as yellow beacon or marker on the map