dcam doesnt go off
#1

My DashCam system is not going off after /dcam agaain


pawn Код:
CMD:dcam(playerid, params[])
{
    if(DashCamActivated[playerid] == false)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new vehid = GetPlayerVehicleID (playerid);
            if(IsACop(playerid))
            {
                if (VehRadarID [vehid] == -1) return 1;
                for (new i = 0; i < MAX_PLAYERS; i++)
                {
                    CheckingSpeed [vehid] = SetTimerEx ("UpdateSpeed", 100, 1, "d", vehid);
                    PlayerTextDrawShow (i,RadarHud[i]);
                    PlayerTextDrawShow (i,VehicleModel[i]);
                    PlayerTextDrawShow (i,DashCamText);
                    DashCamActivated[playerid] = true;
                }
            }
        }
    }
    else
    {
        DashCamActivated[playerid] = false;
        new vehid = GetPlayerVehicleID (playerid);
        if(CheckingSpeed[vehid] > 0)
        {
            for (new i = 0; i < MAX_PLAYERS; i++)
            {
                KillTimer (CheckingSpeed [vehid]);
                CheckingSpeed [vehid] = -1;
                PlayerTextDrawHide (i, RadarHud[i]);
                PlayerTextDrawHide (i, VehicleModel[i]);
                PlayerTextDrawHide (i, DashCamText);
            }
        }
    }
    return 1;
}
And the other issue, If a players is in a range of a other players that used /dcam it will be bugged
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)