detect if a player is near
#7

Here you go
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(YOUR_NPC_ID,x,y,z);
    if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"NPC Says: hello, Im NPC, what can I do for you?");
    }
    return 1;
}
Reply


Messages In This Thread
detect if a player is near - by willsuckformoney - 30.07.2010, 06:47
Re: detect if a player is near - by ikey07 - 30.07.2010, 07:30
Re: detect if a player is near - by willsuckformoney - 30.07.2010, 07:55
Re: detect if a player is near - by ikey07 - 30.07.2010, 08:11
Re: detect if a player is near - by willsuckformoney - 30.07.2010, 08:44
Re: detect if a player is near - by willsuckformoney - 30.07.2010, 09:02
Re: detect if a player is near - by ikey07 - 30.07.2010, 09:03
Re: detect if a player is near - by WackoX - 30.07.2010, 09:06
Re: detect if a player is near - by Steven82 - 30.07.2010, 09:11
Re: detect if a player is near - by ikey07 - 30.07.2010, 09:25

Forum Jump:


Users browsing this thread: 3 Guest(s)