Getting an NPCs ID.
#1

Well Started to go back to some NPCs today and was wondering how to get the ID of a NPC.

pawn Code:
public OnPlayerUpdate(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(YOUR_NPC_ID,x,y,z);
    if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"NPC Says: hello, Im NPC, what can I do for you?");
    }
    return 1;
}
This was posted on one of my old topics on the same thing (3 or 4 months ago). I figured how to get it then just now I forgot. Any type help appreciated.
Reply


Messages In This Thread
Getting an NPCs ID. - by willsuckformoney - 25.12.2010, 22:22
Re: Getting an NPCs ID. - by propilot - 25.12.2010, 22:27
Re: Getting an NPCs ID. - by willsuckformoney - 25.12.2010, 22:44
Re: Getting an NPCs ID. - by Mauzen - 25.12.2010, 22:54
Re: Getting an NPCs ID. - by Infamous - 25.12.2010, 22:55
Re: Getting an NPCs ID. - by willsuckformoney - 25.12.2010, 23:02
Re: Getting an NPCs ID. - by Infamous - 25.12.2010, 23:05

Forum Jump:


Users browsing this thread: 1 Guest(s)