18.11.2013, 10:04
Hi , I have a big problem when using RNPC include: (2weeks still didn't find the problem...)
-I just noticed we can't create RNPC & set its pos in the same time
The problem is the pos of the npc isn't set... like if the CreateRNPC create the NPC & don't spawn it....
Thanks
-I just noticed we can't create RNPC & set its pos in the same time
pawn Код:
public ZombieBot(playerid) //This is the callback of the timer ZombieBot which called each 5 sec
{
new npc = CreateRNPC(str); // I create the NPC
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z); // Get the player's pos
SetRNPCPos(npc,x,y,z); // Teleport the NPC to the player's pos
return 1;
}
Thanks