How to do , when I typing command, The bot is stop? - 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 do , when I typing command, The bot is stop? (
/showthread.php?tid=96459)
How to do , when I typing command, The bot is stop? -
_Ben_[Fux-c.co.il RP] - 08.09.2009
Someone tell me, a_samp and a_npc cannot be at the same script.
So , I want to do, when I am send command, the bot will stop.
I know the function to do it , is PauseRecordingPlayback .
How to do it? 
Re: How to do , when I typing command, The bot is stop? -
Jasen - 08.09.2009
a_samp and a_npc cannot not be in the same script.
Re: How to do , when I typing command, The bot is stop? -
_Ben_[Fux-c.co.il RP] - 08.09.2009
Quote:
Originally Posted by Jasen
a_samp and a_npc cannot not be in the same script.
|
WTF
Thats what I am saying!!!
So how to do that, when I am sending command, the Bot will stop?! Dont get it!?
Re: How to do , when I typing command, The bot is stop? -
saiberfun - 08.09.2009
use SendRconCommand("npcsstop") in ur samp script and
public OnRconCommand(cmd[]) in ur npc script
like
u use on PlayerCommand test /stopnpcs
then u send on that SendRconCommand("npcsstop")
and in ur npc script u checck OnRconCommand if it == npcstop
n if it does u do PauseRecordingPlayback
and Jasen was kidding because u said
Quote:
Originally Posted by _Ben_[Fux-c.co.il RP
]
Someone tell me, a_samp and a_npc cannot be at the same script.
|
like ud tell him to say exactly that words