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



Question - FireCat - 01.08.2010

i have a question on a npc bot?
How can i like, i made a bot that drives a bus he works and all but how can i make that when he's stopped a message to all appears saying bus ha stopped?


Re: Question - Jeffry - 01.08.2010

Well, there are 2 possibilities:

• Use a timer that checks the Speed of your NPC, and if it is 0, the message appears.
• Check, how long your NPS drives to the place where he stops, and make a timer with the time of the driving time. E.g: NPC drives 2 minutes => Timer of 120000ms.

I can't think of any other ways.
I hope this helps you.



Re: Question - FireCat - 01.08.2010

but im not good with timers


Re: Question - Jeffry - 01.08.2010

Tell me how long the NPC drives untill he has reached his destination. Then I can create the timer for you (But not today anymore^^).