SA-MP Forums Archive
NPC 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: NPC Problem (/showthread.php?tid=103884)



NPC Problem - Matej682 - 21.10.2009

Код:
public OnPlayerConnect(playerid)
{
  if (IsPlayerNPC(playerid))
  {
	SendClientMessageToAll(0x00000000,"A new NPC connected!");
	return 1;
  }
}
Were do i need to put this?? Help pls


Re: NPC Problem - Joe Staff - 21.10.2009

In your script.

Either place it into a FilterScript or a GameMode.


Re: NPC Problem - Matej682 - 21.10.2009

i want to place it into "my" gamemod, but were?


Re: NPC Problem - Damn Right M.I.A! - 21.10.2009

Oh hai, I see your problem, listen to my advices:

1) never fear to try something new
2) searching before asking
3) read the sticky threads

/imageshack/img132/2514/91005807.png

example link:
http://www.megaupload.com/?d=EYT39O0X


Re: NPC Problem - Matej682 - 21.10.2009

1) the Search is not working
2) thx for the advices
3) i tryed this but its not working


Re: NPC Problem - Damn Right M.I.A! - 21.10.2009

Ye... try the link i gave you.


Re: NPC Problem - Matej682 - 21.10.2009

Not working the bot connects to server and lives!!!!


Re: NPC Problem - SFather - 21.10.2009

lives means they leave the server after joining?


Re: NPC Problem - Matej682 - 22.10.2009

yes


Re: NPC Problem - Matej682 - 22.10.2009

Pls Help!!