Zeex / sampgdk

Write SA-MP gamemodes in C/C++
http://zeex.github.io/sampgdk
Apache License 2.0
156 stars 83 forks source link

OnPlayerConnect for FCNPC NPCs #189

Open IstuntmanI opened 7 years ago

IstuntmanI commented 7 years ago

As I wrote in https://github.com/samp-incognito/samp-streamer-plugin/issues/199:

OnPlayerConnect isn't called in the Streamer Plugin (via sampGDK), but the same debug line in my filterscript's OnPlayerConnect was printed out, so this means that NPCs are calling OnPlayerConnect only in filterscripts (and probably the gamemode), but not in sampGDK.

Maybe @ziggi can test it better and tell us more details about this ? Is it actually working correctly for regular SA-MP NPCs ?

EDIT: Some guy told me that regular NPCs detect checkpoints and dynamic areas just fine, so they call OnPlayerConnect like they should, so it is probably a FCNPC problem, somehow. Probably it can still be fixed by sampGDK somehow.


May be something similar to https://github.com/Zeex/sampgdk/issues/124 ? Also, can that function and callback related to client check be added too in sampGDK ? I see that sampGDK still misses them.