NPC:OnPlayerStreamIn not working? - 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)
+--- Thread: NPC:OnPlayerStreamIn not working? (
/showthread.php?tid=491547)
NPC:OnPlayerStreamIn not working? -
Hoborific - 31.01.2014
So I was doing some logic on my npcs as they're a seperate thread, etc etc.
Anyway OnPlayerStreamIn doesn't seem to register or even get called at all, not for players, not for other NPCs, am I using it wrong?
pawn Код:
public OnPlayerStreamIn(playerid)
{
printf("FOUND %i",playerid);
return 1;
}
also is there a way to obtain the NPC's playerid inside his NPC script without having to master/slave with my gamemode/filterscript using SendClientMessage/SendChat?
Re: NPC:OnPlayerStreamIn not working? -
Konstantinos - 31.01.2014
https://sampwiki.blast.hk/wiki/OnPlayerStreamIn
Re: NPC:OnPlayerStreamIn not working? -
Hoborific - 31.01.2014
https://sampwiki.blast.hk/wiki/NPC:OnPlayerStreamIn