How to create checkpoint which doesn't appear on the map ?
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)