[RNPC] Need help, for this.
#1

pawn Код:
#define FILTERSCRIPT

#include <a_samp>
#include <rnpc>

#if defined FILTERSCRIPT

new rnpcid;

public OnFilterScriptInit()
{
    rnpcid = ConnectRNPC("zombie");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

#else
I try to connect a NPC but when i start my server, nothing happen:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(IsPlayerNPC(rnpcid))return 1;
    return 1;
}

public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(rnpcid))return 1;
    return 1;
}
Forced NPC to join cuz i have a registration system.

pawn Код:
public OnPlayerSpawn(playerid)
{
    if(IsPlayerNPC(rnpcid))
    {
        SetPlayerPos(rnpcid,2530.7561,-1678.0607,19.9302);
    }
    return 1;
}
and here try to spawn the npc, on this coords, but nothing.

Someone can help me?!
Thanks anyway.
Reply


Messages In This Thread
[RNPC] Need help, for this. - by Galletziz - 01.05.2014, 11:32
Re: [RNPC] Need help, for this. - by VinPure - 01.05.2014, 11:55
Re: [RNPC] Need help, for this. - by Galletziz - 01.05.2014, 12:00
Re: [RNPC] Need help, for this. - by doreto - 01.05.2014, 12:40
Re: [RNPC] Need help, for this. - by Galletziz - 01.05.2014, 12:50
Re: [RNPC] Need help, for this. - by Galletziz - 01.05.2014, 13:22

Forum Jump:


Users browsing this thread: 1 Guest(s)