How can I set up bots inside any interior?
#7

Quote:
Originally Posted by (ed!med!
Meh, you do that in the "OnPlayerSpawn"

Here an example:

pawn Код:
public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid))
  {
    new npcname[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npcname, sizeof(npcname));
    if(!strcmp(npcname, "Bot1337", true)) // Name of your bot
    {
      SetPlayerSkin(playerid, 111);
      SetPlayerVirtualWorld(playerid, 2);
      SetPlayerInterior(playerid, 45353241);
    }
    return 1;
  }

  return 1;
Edit: Aww, MadeMan was faster^^
Alright, thx I'll try it..
But there is no names for my bots IG, is that matter?
And what about the bot's animations? Why doesn't it work?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)