I need a little help plz
#1

Could someone plz give me an example of a (race) checkpoint that only appears when a player is near it, so i will be able to use on player enter race checkpoint callback.
Thanks for any help in advance.
Reply
#2

Use IsPlayerInRangeOfPoint function

Read more : https://sampwiki.blast.hk/wiki/IsPlayerInRangeOfPoint
Reply
#3

yeah, i read that wiki thing isplayerinrangeofpoint before, it wont do what i want it to, thats why i asked for an example.
Thanks for your time.
Reply
#4

Just do
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, xAngle, yAngle, zAngle))
  {
  // code here.
  }
Reply
#5

thankyou kmzr,
i know that bit, i just dont know where to put it in my gamemode, thats why i asked for an example.
Thanks for your time.

Anyone else plz ?
Reply
#6

You can use it in :
Код:
public OnPlayerEnterCheckpoint(playerid)
{
	return 1;
}
or
Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
	return 1;
}
Reply
#7

Thank's. Gonna try it now.


Peace....
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)