[HELP] Checkpoints, checkpoints, checkpoints :P
#9

Great, it works!

Now to the last part, I'm trying to modify the command to check if the play is in a license vehicle, but it doesn't work.

pawn Код:
if(strcmp(cmd, "/test", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(IsLogged[playerid] == 0)
            {
                SendClientMessage(playerid, COLOR_GREY, "   You are not logged in yet.");
                return 1;
            }
            new vehicleid = GetPlayerVehicleID(playerid);
            if(vehicleid >= LicenseCar[lc1] && vehicleid <= LicenseCar[lc2])
            {
                LicenseCheckpoint[playerid] = 1;
                SetPlayerRaceCheckpoint(playerid, 0, 1067.0742, 1375.4685, 10.7883, 0, 0, 0, 5.0);
            }
        }
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)