NPC Pause? - 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: NPC Pause? (
/showthread.php?tid=317125)
NPC Pause? -
Oh - 10.02.2012
Say a NPC is walking is there a way to pause the NPC and then play the NPC again?
Re: NPC Pause? - T0pAz - 10.02.2012
Use
this.
Re: NPC Pause? -
Oh - 10.02.2012
I was reading that today, I don't see how I could make the NPC pause still.
Re: NPC Pause? - T0pAz - 10.02.2012
Under
OnPlayerUpdate put this.
pawn Код:
if(IsPlayerNpc(playerid))
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strcmp(pName, "Yourbotname") == 0)
{
return 0;
}
}