SA-MP Forums Archive
Possible to Spectate or TP to a bot? - 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: Possible to Spectate or TP to a bot? (/showthread.php?tid=142279)



Possible to Spectate or TP to a bot? - Haku - 17.04.2010

Well, I'm using some NPC filterscripts with my gamemode and while my bots always stay connected, they don't seem to be anywhere in-game. Is there any way I can spectate or TP to them in-game for debugging purposes?

Kind Regards,

Haku


Re: Possible to Spectate or TP to a bot? - johnnyc - 17.04.2010

the bots is like the online players so they must have ID etc, try /goto [ID] i you dont have the command tell me i will give it


Re: Possible to Spectate or TP to a bot? - Gummy Bear - 17.04.2010

I think that bots have an [ID] like on the score list.

Exemple, i connect, my name is Gummy_Bear(ID:43), just /spec 43.


Re: Possible to Spectate or TP to a bot? - BLAbla93 - 17.04.2010

yes load a admin script that has a /goto or /spec command and you can then tp to them and spectate them.
i know theres tons of admin system that have these commands

@gummy npc's dont show up in the players tab list


Re: Possible to Spectate or TP to a bot? - Gummy Bear - 17.04.2010

Quote:
Originally Posted by BLAbla93
yes load a admin script that has a /goto or /spec command and you can then tp to them and spectate them.
i know theres tons of admin system that have these commands

@gummy npc's dont show up in the players tab list
hurm.
Quote:

like on the score list.

anyways ^^


Re: Possible to Spectate or TP to a bot? - Haku - 17.04.2010

Ok. Well, I've tried TPing and spectating using the regular admin commands, but they don't seem to be any good in my case. They give the same result as if they were used on a non-connected player. I've even tried looking under the ground and didn't find anything. The bots are staying connected to the server so I'm not sure what the problem is.


Re: Possible to Spectate or TP to a bot? - johnnyc - 17.04.2010

Quote:
Originally Posted by Haku
Ok. Well, I've tried TPing and spectating using the regular admin commands, but they don't seem to be any good in my case. They give the same result as if they were used on a non-connected player. I've even tried looking under the ground and didn't find anything. The bots are staying connected to the server so I'm not sure what the problem is.
i dont know what you mean, you want to remove the bots ? or to found where are they or what ?


Re: Possible to Spectate or TP to a bot? - Haku - 17.04.2010

I want to find where they are. The bots are staying connecting, but they don't seem to be anywhere. I've checked where they're supposed to be and they're not there. I've tried many different NPC filterscripts btw.


Re: Possible to Spectate or TP to a bot? - Dark_Kostas - 17.04.2010

pawn Код:
OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    //your rest code



Re: Possible to Spectate or TP to a bot? - Haku - 17.04.2010

Quote:
Originally Posted by Dark_Kostas
pawn Код:
OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(playerid)) return 1;
    //your rest code
I've excluded bots for several of my callbacks already.