Function
#1

How i can make or give me IsPlayerNearNpc

Or give me sample i need stock IsPlayerNearNpc(playeri, npcid)

Like that ...
Reply
#2

Do you use any npc plugin?
Reply
#3

Yes i using FCNPC plugin
Reply
#4

pawn Код:
stock IsPlayerNearNPC(playerid, npcid)
{
    new Float:x, Float:y, Float:z;
    FCNPC_GetPosition(npcid, x, y, z);
    return IsPlayerInRangeOfPoint(playerid, 5.0, x, y, z); // Change 5.0 to the range you want.
}
Should work, not tested.
Reply
#5

Thank i will test rep+
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)