[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
#2

So what are errors?
Reply
#3

Do it with SetTimerEx for 3:40 mins
When you enter in the checkpoint to stop your timer and to show you Success.
But if time end to show you Failed.
It's easy you need to have basic knowledge for scripting
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)