Connect RNPC
#1

Hello there,

I want to make one npc in my roleplay script, but when I try to connect it nothing is happening.
I put in onplayerconnect, onplayerspawn, and in onplayerrequestspawn if(IsPlayerNPC(playerid)) return true;
But the NPC doesn't shows up.
Here is code how do I connect it

pawn Код:
CMD:npcc(playerid, params[]){
    new Float:pos[3];
    Npc = ConnectRNPC("TestNpc");
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
    SetPlayerPos(Npc, pos[0], pos[1], pos[2]);
    return true;
}

CMD:gethere(playerid, params[]){
    new Float:Speed, Float:pos[3];
    sscanf(params, "f", Speed);
    GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
    MoveRNPC(Npc, pos[0], pos[1], pos[2], Speed);
    return true;
}
Reply


Messages In This Thread
Connect RNPC - by CoaPsyFactor - 03.09.2012, 18:22
Re: Connect RNPC - by d3n4 - 08.12.2012, 08:10
Re: Connect RNPC - by Threshold - 08.12.2012, 08:21
Re: Connect RNPC - by InfiniTy. - 08.12.2012, 09:01
Re: Connect RNPC - by RajatPawar - 08.12.2012, 09:20

Forum Jump:


Users browsing this thread: 2 Guest(s)