Bemásolom:
így néz ki xDDDD de megpróbálom eznélkül, ám thx
if(!IsPlayerConnected(playerid)) return 0;
if(IsPlayerInRangeOfPoint(playerid, 10, 23.0820,-2757.5063,45.6409))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Monster Parkour\", 8, 10000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, 1655.8418,-1237.6635,236.7598))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"NRG Parkour\", 8, 10000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, 1220.0106,1352.1740,110.4261))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Las Vanturas Parkour\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, 559.2107,-1704.7832,193.3895))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"HopDeHop\", 7, 7000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, -1733.3672,2008.7205,363.6033))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Freeway\", 7, 7000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, -945.7554,2305.4773,137.6334))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Bigjump\", 5, 3000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, 1785.141724, -1076.051025, 49.627594))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Roller Coaster\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, -2602.949951, 1569.463623, 128.165741))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Roller Coaster2\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, -1850.229980, 920.274597, 76.910606))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Roller Coaster3\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, -2530.947266, 2427.192383, 112.170639))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Roller Coaster4\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, -2518.735596, 2574.672852, 225.129623))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Roller Coaster4\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, -1168.3545,1067.4728,43.7304))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Stunt Bridge\", 7, 10000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, 3125.8208,1272.3312,114.2881))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Csik\", 10, 10000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 10, 2342.775879, 206.415085, 117.406219))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Weater Jump\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 15, -2067.419189, 1758.429932, 296.729156))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Jizzy ~p~Jump~w~\", 5, 5000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5, 315.7728,1033.9340,1945.9673))
{
if(Completed[playerid] == false)
{
ShowWiner(playerid, \"Las Venturas ~p~Stunt~w~\", 10, 10000);
Completed[playerid]=true;
Recheck(playerid, 20000);
}
}
/* Andromada */
if(IsPlayerInRangeOfPoint(playerid, 5, 2244.7429,1647.0834,112.8118) && GetPlayerInterior(playerid == 9))
{
SetPlayerInterior(playerid, 0);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInRangeOfPoint(i, 7.0, -423.699341, 2201.723145, 40.926292) && OpenGateCage == false) //close --> open
{
MoveObject(Gate3, -423.692413, 2201.705811, 50.923096, 10.0);
MoveObject(Gate4, -423.686127, 2206.743164, 45.926369, 10.0);
MoveObject(Gate5, -418.655365, 2201.730713, 45.926369, 10.0);
MoveObject(Gate6, -423.685608, 2196.700928, 45.913692, 10.0);
MoveObject(Gate7, -428.733124, 2201.718506, 45.926338, 10.0);
return OpenGateCage = true;
}
if(!IsPlayerInRangeOfPoint(i, 7.0, -423.699341, 2201.723145, 40.926292) && OpenGateCage == true) //open --> close
{
MoveObject(Gate3, -423.692413, 2201.705811, 59.923141, 1.5);
MoveObject(Gate4, -423.686127, 2215.716309, 45.926369, 1.5);
MoveObject(Gate5, -409.680603, 2201.730713, 45.926369, 1.5);
MoveObject(Gate6, -423.685608, 2187.702881, 45.913692, 1.5);
MoveObject(Gate7, -437.683075, 2201.718506, 45.926338, 1.5);
return OpenGateCage = false;
}
}