One problem - 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: One problem (
/showthread.php?tid=220714)
One problem -
Curti$ - 04.02.2011
I got this problem:
[NPC_Name] join server
[NPC_Name] join server
[NPC_Name] join server
[NPC_Name] join server
After lil bit:
[NPC_Name] left server
[NPC_Name] left server
[NPC_Name] left server
[NPC_Name] left server.
What's wrong?
Re: One problem -
PeteShag - 04.02.2011
Do you have a registration system in your GM? If yes you have to bypass it, so the NPC's will be able to spawn.
EDIT:
pawn Код:
if(IsPlayerNPC(playerid))return 1;
Anywhere that it is looking for the input such as passwords, login and stuff...
EDIT2: Try
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
SpawnPlayer(playerid);
}
}
Edit 3 I didn't see your post Lethal
Re: One problem - [L3th4l] - 04.02.2011
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid)) return 1;
}
Re: One problem -
MrDeath537 - 04.02.2011
It seems like your filterscripts/gamemode is kicking bots, try using [L3th4l]'s code on your filterscripts and gamemode.