Vehicle radius from player
#1

Hey!

I want to put radius or something between vehicle and player.

Код:
if(IsPlayerInRangeOfPoint(i, 30.0, X, Y, Z))
When I use this, my GM says it's wrong. (Distance or something).

Q: How can I calculate radius from vehicle to player?
I want to do one system with music and I need radius. (Where player can hear it)
Reply
#2

PHP код:
new Pos[3];
GetVehiclePos(vehicleid,Pos[0],Pos[1],Pos[2]);
if(
IsPlayerInRangeOfPoint(playerid,30.0,Pos[0],Pos[1],Pos[2]))
{
your code here

Reply
#3

GetPlayerDistanceFromPoint(playerid, Float:X, Float:Y, Float:Z);
Reply
#4

Nope..
Reply
#5

Quote:
Originally Posted by Arcanize
Посмотреть сообщение
Nope..
Nope what?
Reply
#6

yea, it now works, thanks dudes
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)