Guten Tag Fischbrote,
Wie kann ich Abfragen wv Player in einem Checkpoint sind und das sie dann bei 2 Starten ..
Das habe ich bereits :
//Oben im Script
new betreter[MAX_PLAYERS];
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(Race1[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,10.0,2187.2468,1291.5117,10.3300))
{
betreter[playerid] += 1;
if(betreter[playerid] >= 2)
{
SetTimer("StartRace",1000,true);
SetPlayerRaceCheckpoint(playerid,0,2048.7620,1186.0100,10.3300,2009.5347,1093.9270,10.3300,7.0);
Race1[playerid] = 2;
}
}
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
if(Race1[playerid] == 1)
{
betreter[playerid] -= 1;
}
return 1;
}