I need help for Attacking NPC (+REP )
#6

Sorry try this


Code:

 public OnPlayerSpawn(playerid)
{
  if(IsPlayerNPC(playerid))
  {
    new npc[MAX_PLAYER_NAME];
    GetPlayerName(playerid, npc, sizeof(npc)); 
    if(!strcmp(npc, "Attack_NPC", true))
    {
      SetTimer("AttackNPC", 5000, 0);
    }
    return 1;
  }
  return 1;
}

But for the CreateAttackingNPC, I don't really understand what you want to do if the player is an npc and the npcname is Attack_NPC ^^
Reply


Messages In This Thread
I need help for Attacking NPC (+REP ) - by MarkNelson - 07.07.2016, 14:22
Re: I need help for Attacking NPC (+REP ) - by Napst34 - 07.07.2016, 14:31
Re: I need help for Attacking NPC (+REP ) - by MarkNelson - 07.07.2016, 14:35
Re: I need help for Attacking NPC (+REP ) - by Napst34 - 07.07.2016, 14:36
Re: I need help for Attacking NPC (+REP ) - by MarkNelson - 07.07.2016, 14:40
Re: I need help for Attacking NPC (+REP ) - by Napst34 - 07.07.2016, 14:47
Re: I need help for Attacking NPC (+REP ) - by MarkNelson - 07.07.2016, 14:49
Re: I need help for Attacking NPC (+REP ) - by MarkNelson - 07.07.2016, 15:02
Re: I need help for Attacking NPC (+REP ) - by Napst34 - 07.07.2016, 15:15
Re: I need help for Attacking NPC (+REP ) - by MarkNelson - 07.07.2016, 15:18

Forum Jump:


Users browsing this thread: 2 Guest(s)