y does it double the client message?
#5

If i get you right you want to say that you see both RESULTS if you fail


pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 7.0, 1019.9844,1371.1270,10.4467))
{
    PlayerPlaySound(playerid, 1054 , 0.0, 0.0, 10.0);
    if(checkpointid == dtcp[18])
    {
        if (health < 1000)
        {
            DisablePlayerRaceCheckpoint(playerid);
            DestroyDynamicRaceCP(dtcp[19]);
            DestroyVehicle(dscar);
            IsInDrivingTest[playerid] = 0;
            SendClientMessage(playerid, red,"This vehicle has too much damaged! Failed.");
            GameTextForPlayer(playerid, "~r~Failed!",6000,1);
            dvlicense[playerid] = 0;
            return 1;
        }
        else
        {
            DisablePlayerRaceCheckpoint(playerid);
            SendClientMessage(playerid,White,"Now head back to driving school!");
            DestroyDynamicRaceCP(dtcp[18]);
        }
    }
    dtcp[19] = CreateDynamicRaceCP(1, 1140.0406,1370.9948,10.3881 , 0, 0, 0, 5.0, -1, -1, -1, 99999);
}
And i think you should change vehicle HP from 1000 to about 900-950 " if (health < 1000)"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)