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



Need help - Apply - 17.05.2010

Im trying to make it so if

playerid = 12 return nothing
else
.....
how do it do it?
i have a bot, and it stands still and every 5 minutes it says ... went afk, i wanna make it so if its the bot's id number it won't say that


Re: Need help - Jefff - 17.05.2010

Use
Код:
if(IsPlayerNPC(playerid)) // bot
{
...
}else{
...
}



Re: Need help - Apply - 17.05.2010

Thanks, i tried doing it like that
but wouldnt it mean when a bot goes afk means no one can go afk after that?
its not working


Re: Need help - Backwardsman97 - 17.05.2010

A problem in your afk script I would say. Post it.