How to create checkpoint which doesn't appear on the map ?
#1

So, how to do that ?
Reply
#2

Use Isplayerinrangeofpoint on

Onplayerupdate
Reply
#3

Quote:
Originally Posted by imftb
Посмотреть сообщение
Use Isplayerinrangeofpoint on

Onplayerupdate
Another thing which could work, I've seen somewhere checkpoints made by objects and there should be an include somewhere. Will edit as soon as I find it..

Might be pickups, not sure.

EDIT: And tada, here it is.. You can make them to not be visible on map.
Reply
#4

I found object ID 1317, but its white checkpoint , if someone can help, write here please.
Reply
#5

Quote:
Originally Posted by bustern
Посмотреть сообщение
I found object ID 1317, but its white checkpoint , if someone can help, write here please.
Check my post above mate, it will help you for sure.
Reply
#6

Ok.

A another way if you want that someting happens to player when he grab the checkpoint you can use this.

Quote:

forward CustomPickups();

just an exemple

Quote:

public CustomPickups()
{
new Float:oldposx, Float:oldposy, Float:oldposz;
new string[128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, oldposx, oldposy, oldposz);
new tmpcar = GetPlayerVehicleID(i);
if (IsPlayerInRangeOfPoint(i, 2, 350.2929,178.6249,1014.1875) || IsPlayerInRangeOfPoint(i, 2, 350.6007, 177.6201, 1018.9766) || IsPlayerInRangeOfPoint(i, 2, 2487.8984,2397.2175,4.2109) || IsPlayerInRangeOfPoint(i, 2, 2488.5178,2397.2905,10.8203) || IsPlayerInRangeOfPoint(i, 2, 1283.9352,-788.6283,1084.0078) || IsPlayerInRangeOfPoint(i, 2, 2460.2573,2316.7065,91.6300) || IsPlayerInRangeOfPoint(i, 2, -1968.7019,324.7651,1552.1387))
{
GameTextForPlayer(i, "~r~ tapez /ascenseur", 3000, 3);
}
}
}
}

Reply
#7

Thx you Cypress, +rep for you If someone knows another way withour this include, tell me
Reply
#8

Bump
Reply
#9

Yes you can create one without include.
Create a object (Object which is checkpoint shape), Change it's material color to color red or anything.

Check if player is in the range of point in the object position.
Reply
#10

How to change color of this object to red ?
CreateObject(1317, 1557.57654, -1578.82861, 12.54700, 0.00000, 0.00000, 0.00000);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)