TextDraw is not going off after use the command again
#1

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;
                foreach(Player, 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;
                if(CheckingSpeed[vehid] > 0)
                {
                    foreach(Player, i)
                    {
                        KillTimer (CheckingSpeed [vehid]);
                        CheckingSpeed [vehid] = -1;
                        PlayerTextDrawHide (i, RadarHud[i]);
                        PlayerTextDrawHide (i, VehicleModel[i]);
                        PlayerTextDrawHide (i, DashCamText);
                    }
                }
            }
        }
    }
    return 1;
}
Reply


Messages In This Thread
TextDraw is not going off after use the command again - by lulo356 - 31.12.2014, 16:04
Re: TextDraw is not going off after use the command again - by TheCoopster - 31.12.2014, 16:20
Re: TextDraw is not going off after use the command again - by lulo356 - 31.12.2014, 16:40
Re: TextDraw is not going off after use the command again - by lulo356 - 31.12.2014, 23:15

Forum Jump:


Users browsing this thread: 1 Guest(s)