04.06.2013, 05:37
Hello! I just spent about thirty minutes adding about fifty seven checkpoints into my server for a DMV test. I have this command right here:
I want both of the params to activate a time when the player steps into a vehicle. Then I want it to time their arrival to the final checkpoint:
And then tell them their time upon getting around the map. Then I want it to tell them, if they arrived in 3:40 or below, they passed. But if it is above 3:40 they failed. Is this possible?
EDIT:
Here is the entire command and it's following functions:
http://pastebin.com/sPcbmYAQ
Код:
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; }
Код:
if(IsPlayerInRangeOfPoint(playerid, 3.0, 1159.8411,1370.9576,10.4051)) { DisablePlayerCheckpoint(playerid); SetVehicleToRespawn(1); SetVehicleToRespawn(2); SetVehicleToRespawn(3); }
EDIT:
Here is the entire command and it's following functions:
http://pastebin.com/sPcbmYAQ