Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:startpretest(playerid, params[])
- {
- if(isnull(params))
- {
- return SendClientMessage(playerid, -1, "USAGE: /startpretest [standard/trucker]");
- }
- if(!strcmp(params, "standard", true))
- {
- SetPlayerCheckpoint(playerid, 1020.6112,1376.4153,10.4650, 3.0);
- return 1;
- }
- if(!strcmp(params, "trucker", true))
- {
- SetPlayerCheckpoint(playerid, 1020.6112,1376.4153,10.4650, 3.0);
- return 1;
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1020.6112,1376.4153,10.4650))
- {
- SetPlayerCheckpoint(playerid, 1005.9565,1322.0747,10.4038, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1005.9565,1322.0747,10.4038))
- {
- SetPlayerCheckpoint(playerid, 1017.7825,1191.3296,10.4244, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1017.7825,1191.3296,10.4244))
- {
- SetPlayerCheckpoint(playerid, 1017.7825,1191.3296,10.4244, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1017.7825,1191.3296,10.4244))
- {
- SetPlayerCheckpoint(playerid, 1406.5076,1190.9941,10.4098, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1406.5076,1190.9941,10.4098))
- {
- SetPlayerCheckpoint(playerid, 1444.3302,1150.9672,10.4055, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1444.3302,1150.9672,10.4055))
- {
- SetPlayerCheckpoint(playerid, 1504.7687,1118.6617,10.4031, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1504.7687,1118.6617,10.4031))
- {
- SetPlayerCheckpoint(playerid, 1505.3162,971.6613,10.4060, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1505.3162,971.6613,10.4060))
- {
- SetPlayerCheckpoint(playerid, 1530.0887,912.0064,10.4058, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1530.0887,912.0064,10.4058))
- {
- SetPlayerCheckpoint(playerid, 1564.5573,889.8911,11.3500, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1564.5573,889.8911,11.3500))
- {
- SetPlayerCheckpoint(playerid, 1564.9735,737.2898,10.4058, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1564.9735,737.2898,10.4058))
- {
- SetPlayerCheckpoint(playerid, 1542.5078,656.0610,10.4049, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1542.5078,656.0610,10.4049))
- {
- SetPlayerCheckpoint(playerid, 1450.9310,668.4312,10.3973, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1450.9310,668.4312,10.3973))
- {
- SetPlayerCheckpoint(playerid, 1520.4220,687.2266,10.4055, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1520.4220,687.2266,10.4055))
- {
- SetPlayerCheckpoint(playerid, 1542.9778,651.0878,10.4063, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1542.9778,651.0878,10.4063))
- {
- SetPlayerCheckpoint(playerid, 1569.5994,823.7298,13.1724, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1569.5994,823.7298,13.1724))
- {
- SetPlayerCheckpoint(playerid, 1570.0299,1096.5000,10.4053, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1570.0299,1096.5000,10.4053))
- {
- SetPlayerCheckpoint(playerid, 1589.7512,1130.0542,10.4049, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1589.7512,1130.0542,10.4049))
- {
- SetPlayerCheckpoint(playerid, 1822.4714,1131.0854,12.8243, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1822.4714,1131.0854,12.8243))
- {
- SetPlayerCheckpoint(playerid, 1865.8409,1014.3036,10.4135, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1865.8409,1014.3036,10.4135))
- {
- SetPlayerCheckpoint(playerid, 1909.8900,931.4325,10.5368, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1909.8900,931.4325,10.5368))
- {
- SetPlayerCheckpoint(playerid, 2008.7811,953.2060,10.4019, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2008.7811,953.2060,10.4019))
- {
- SetPlayerCheckpoint(playerid, 2025.0282,970.2595,10.2061, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2025.0282,970.2595,10.2061))
- {
- SetPlayerCheckpoint(playerid, 2044.6512,946.4937,9.6887, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2044.6512,946.4937,9.6887))
- {
- SetPlayerCheckpoint(playerid, 2025.0558,855.7150,6.4678, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 2025.0558,855.7150,6.4678))
- {
- SetPlayerCheckpoint(playerid, 1750.5667,854.7664,9.5262, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1750.5667,854.7664,9.5262))
- {
- SetPlayerCheckpoint(playerid, 1423.6104,855.0876,6.5457, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1423.6104,855.0876,6.5457))
- {
- SetPlayerCheckpoint(playerid, 1228.2996,1091.5067,6.5541, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1228.2996,1091.5067,6.5541))
- {
- SetPlayerCheckpoint(playerid, 1229.0439,1490.6394,6.4684, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1229.0439,1490.6394,6.4684))
- {
- SetPlayerCheckpoint(playerid, 1280.7559,1758.5303,9.5595, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1280.7559,1758.5303,9.5595))
- {
- SetPlayerCheckpoint(playerid, 1251.3341,1814.7012,12.2340, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1251.3341,1814.7012,12.2340))
- {
- SetPlayerCheckpoint(playerid, 1088.0281,1814.6488,10.4053, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1088.0281,1814.6488,10.4053))
- {
- SetPlayerCheckpoint(playerid, 1004.6922,1785.7732,10.4056, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1004.6922,1785.7732,10.4056))
- {
- SetPlayerCheckpoint(playerid, 1004.7479,1500.3807,10.4052, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1004.7479,1500.3807,10.4052))
- {
- SetPlayerCheckpoint(playerid, 1057.9442,1371.8005,10.4219, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1057.9442,1371.8005,10.4219))
- {
- SetPlayerCheckpoint(playerid, 1159.8411,1370.9576,10.4051, 3.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 1159.8411,1370.9576,10.4051))
- {
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(1);
- SetVehicleToRespawn(2);
- SetVehicleToRespawn(3);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment