How to get a player range point
#1

How do I get a coordinates of a player range point.. most of YZX not working.., any help
?
Reply
#2

maybe try this : https://sampwiki.blast.hk/wiki/GetPlayerDistanceFromPoint
or this? https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

Use:

if(IsPlayerInRangeOfPoint(playerid, /*X,Y,Z [YOUR COORDINATES]*/))
{
//your codes
}
Reply
#4

I mean, I made that lines already but I placed coords by /save, in game.. got the numbers but doesn't work look:
Код:
(121) : warning 202: number of arguments does not match definition
PHP код:
if(IsPlayerInRangeOfPoint(playerid288,1926.2720,-1799.6893,13.5469,4.5329,0,0,0,0,0,0)) 
Reply
#5

It's just:

PHP код:
if(IsPlayerInRangeOfPoint(playerid3.01926.2720,-1799.6893,13.5469)) 
Reply
#6

Parameters(playerid, distance, x, y, z) lol
Reply
#7

Код:
if(IsPlayerInRangeOfPoint(playerid, 288,1926.2720,-1799.6893,13.5469))
try this?

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
It's just:

PHP код:
if(IsPlayerInRangeOfPoint(playerid1926.2720,-1799.6893,13.5469)) 
you haven't added distance coordinates.
Reply
#8

Aha got it :V, thanks
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)