Function
#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


Messages In This Thread
Function - by MasonSFW - 01.09.2014, 10:28
Re: Function - by Stinged - 01.09.2014, 10:39
Re: Function - by MasonSFW - 01.09.2014, 10:40
Re: Function - by Stinged - 01.09.2014, 10:43
Re: Function - by MasonSFW - 01.09.2014, 10:46

Forum Jump:


Users browsing this thread: 5 Guest(s)