Set NPc pos.
#7

Assuming you have 1 npc on whole server:
pawn Code:
new ServantNPC;
//(...)
public OnPlayerConnect(playerid) {
    if(IsPlayerNPC(playerid)) ServantNPC = playerid;
    return 1;
}
//(...)
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (!strcmp("/bring", cmdtext, true, 6)) {
        SetPlayerPos(ServantNPC, 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)