Set NPc pos.
#1

Hello everyone.
I was wondering how to set NPC pos.
Actually i got npc without record(Free NPC), and i would like to give him weapon, teleport him, applying whatever i want to do on this NPC.
Can someone give me an example for this please ?
This what i've done.
pawn Code:
ConnectNPC("zombie"," "); // ongamemodeinit
pawn Code:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/bring", cmdtext, true, 10) == 0)
    {
               SetPlayerPos(What shall i put here ?, x,y,z);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
Set NPc pos. - by [D]ry[D]esert - 18.03.2013, 17:22
Re: Set NPc pos. - by mastermax7777 - 18.03.2013, 17:27
Re: Set NPc pos. - by [D]ry[D]esert - 18.03.2013, 17:31
Re: Set NPc pos. - by [D]ry[D]esert - 18.03.2013, 17:46
Re: Set NPc pos. - by mastermax7777 - 18.03.2013, 17:50
Re: Set NPc pos. - by Jstylezzz - 18.03.2013, 17:52
Re: Set NPc pos. - by Misiur - 18.03.2013, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)