[Help] Timing
#1

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:

Код:
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;
}
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:

Код:
    if(IsPlayerInRangeOfPoint(playerid, 3.0, 1159.8411,1370.9576,10.4051))
    {
        DisablePlayerCheckpoint(playerid);
        SetVehicleToRespawn(1);
        SetVehicleToRespawn(2);
        SetVehicleToRespawn(3);
    }
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
Reply


Messages In This Thread
[Help] Timing - by xXRealLegitXx - 04.06.2013, 05:37
Re: [Help] Timing - by DeMoX - 04.06.2013, 10:48
Re: [Help] Timing - by RenSoprano - 04.06.2013, 10:59

Forum Jump:


Users browsing this thread: 2 Guest(s)