SA-MP Forums Archive
OnRecordingPlaybackEnd in gamemode - 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: OnRecordingPlaybackEnd in gamemode (/showthread.php?tid=354652)



OnRecordingPlaybackEnd in gamemode - zgintasz - 27.06.2012

Hi guys,

is it possible somehow check when NPC done his recording playback in gamemode? Because then, I must remove player from vehicle, SetPlayerPos, show dialog and etc.


Thanks.


Re: OnRecordingPlaybackEnd in gamemode - Roko_foko - 27.06.2012

You can try combine PlayerVariables and OnPlayerUpdate callback. There is for sure better way to solve your problem but only this came to my mind.


Re: OnRecordingPlaybackEnd in gamemode - zgintasz - 27.06.2012

Hm, I need without using OnPlayerUpdate.


Re: OnRecordingPlaybackEnd in gamemode - Vince - 27.06.2012

I was under the impression that NPC scripts supported CallRemoteFunction, but apparently they don't. SendCommand might work though. Just add IsPlayerNPC check in your gamemode for that command and call functions as desired.