SA-MP Forums Archive
how to stop NPC on any player press any key ? - 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: how to stop NPC on any player press any key ? (/showthread.php?tid=178089)



how to stop NPC on any player press any key ? - tbx - 20.09.2010

Hi,

how can i stop NPC on any player press any key ? I am looking for this function and i still cant find it


Re: how to stop NPC on any player press any key ? - Mauzen - 20.09.2010

There is the npc function PauseRecordingPlayback
But it is for npc scripts only, you cannot use it in a gamemode or filterscript. You could use a timer and GetPlayerKeys to detect if a player presses a key in the npc script.


Re: how to stop NPC on any player press any key ? - tbx - 20.09.2010

I know about this function . But thank you anyway