Checkpoint ID
#1

How do I Identify checkpoints so that the OnPlayerEnterCheckpoint callback does'nt trigger them all?
Reply
#2

i dont know what do u mean with this but please explain a bit more...
Reply
#3

This is part of a drag racing filterscript I made it compiles but when I use it in my gamemode I encounter a bug. When I do a race (other than drag race) as soon as I enter a race checkpoint all my race checkpoints are disabled and I get 2 client messages WINNER and LOSER

Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
	if(challenger[targetid]!=playerid)
	{
	DisablePlayerRaceCheckpoint(playerid);
	DisablePlayerRaceCheckpoint(challenger[targetid]);
	GivePlayerMoney(playerid,stakes[targetid]);
	SendClientMessage(playerid,COLOR_GREEN,"WINNER!!!");
	SendClientMessage(challenger[targetid],COLOR_RED,"LOSER!!!!");
	challenger[targetid]=0;
 	stakes[targetid]=0;
  return 1;
	}
	if(challenger[targetid]==playerid)
	{
	DisablePlayerRaceCheckpoint(playerid);
	DisablePlayerRaceCheckpoint(challenger[playerid]);
	GivePlayerMoney(playerid,stakes[playerid]);
	SendClientMessage(playerid,COLOR_GREEN,"WINNER!!!");
	SendClientMessage(challenger[playerid],COLOR_RED,"LOSER!!!!");
	challenger[playerid]=0;
 	stakes[playerid]=0;
  return 1;
	}
	return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)