11.09.2017, 18:30
PHP код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1892.8652,-1128.9633,23.8613) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0,1910.5698,-1127.7013,24.3153, 0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1910.5698,-1127.7013,24.3153) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 1922.7101,-1127.5437,24.6200,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1922.7101,-1127.5437,24.6200) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 1935.3966,-1127.6398,24.9208,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1935.3966,-1127.6398,24.9208) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 1955.3051,-1127.9552,25.4240,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1955.3051,-1127.9552,25.4240) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 1999.3730,-1129.3199,25.0862,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1999.3730,-1129.3199,25.0862) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2023.0809,-1128.4589,24.4188,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2023.0809,-1128.4589,24.4188) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2052.1731,-1127.4674,23.5879,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2052.1731,-1127.4674,23.5879) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2077.6431,-1122.7905,23.6244,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2077.6431,-1122.7905,23.6244) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2350.9204,-1162.5967,26.9414,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2350.9204,-1162.5967,26.9414) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2366.5081,-1197.6523,26.9864,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2366.5081,-1197.6523,26.9864) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2376.5500,-1275.7950,23.5722,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2376.5500,-1275.7950,23.5722) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2378.4927,-1325.7792,23.5584,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.4927,-1325.7792,23.5584) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2378.3125,-1345.9044,23.5611,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.3125,-1345.9044,23.5611) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2378.0193,-1364.6858,23.5561,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.0193,-1364.6858,23.5561) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2402.4192,-1724.3811,13.1474,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2402.4192,-1724.3811,13.1474) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2390.3557,-1724.2540,13.1269,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2390.3557,-1724.2540,13.1269) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2319.1663,-1723.6019,13.0823,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2319.1663,-1723.6019,13.0823) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2310.2207,-1723.5612,13.1159,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2310.2207,-1723.5612,13.1159) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2262.8872,-1752.5686,12.9525,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2262.8872,-1752.5686,12.9525) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2297.9568,-1752.8525,12.9478,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2297.9568,-1752.8525,12.9478) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2336.1619,-1752.9246,12.9580,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2336.1619,-1752.9246,12.9580) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2371.1050,-1752.9904,12.9387,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2371.1050,-1752.9904,12.9387) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2306.8257,-1665.4425,14.1134,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2306.8257,-1665.4425,14.1134) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2366.1140,-1665.8473,13.1034,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2366.1140,-1665.8473,13.1034) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2385.2559,-1666.3292,13.1172,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2385.2559,-1666.3292,13.1172) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2408.2407,-1666.9655,13.1017,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2408.2407,-1666.9655,13.1017) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2494.3252,-1682.3666,12.8981,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2494.3252,-1682.3666,12.8981) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2505.3652,-1681.6534,13.1084,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.3652,-1681.6534,13.1084) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2511.4209,-1672.6965,13.0089,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2511.4209,-1672.6965,13.0089) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2511.2000,-1663.6833,13.1542,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2511.2000,-1663.6833,13.1542) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2506.1387,-1657.3492,13.1540,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2506.1387,-1657.3492,13.1540) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2497.4653,-1652.5718,13.0224,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2497.4653,-1652.5718,13.0224) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2487.1057,-1652.0659,13.0493,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2487.1057,-1652.0659,13.0493) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2469.5320,-1652.3706,13.0266,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2469.5320,-1652.3706,13.0266) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2452.8955,-1652.2856,12.9471,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2452.8955,-1652.2856,12.9471) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2415.3684,-1651.3464,13.0835,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2415.3684,-1651.3464,13.0835) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2393.8899,-1651.1527,13.1168,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2393.8899,-1651.1527,13.1168) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2363.1104,-1651.2174,13.1096,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2363.1104,-1651.2174,13.1096) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2281.0745,-1651.6519,14.7354,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2281.0745,-1651.6519,14.7354) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2257.1074,-1649.6342,15.0343,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2257.1074,-1649.6342,15.0343) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 2237.9353,-1645.2035,15.0412,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 2237.9353,-1645.2035,15.0412) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
SetPlayerRaceCheckpoint(playerid, 0, 1787.4531,-1294.2441,13.0736,0, 0,0, 5.0);
}
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1787.4531,-1294.2441,13.0736) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
{
GivePlayerMoney(playerid, 90);
SetPlayerRaceCheckpoint(playerid, 0, 1892.8652,-1128.9633,23.8613,0, 0,0, 5.0);
GameTextForPlayer(playerid, "~p~ You delivered all papers, you got ~r~90$ ~p~for that", 3000, 4);
DisablePlayerRaceCheckpoint(playerid);
}
return 1;
}