How to hide a marker?
#1

Well, markers are disabled and they're not showed, however, when I use /mechanicduty command, a player marker shows on the map for some reason. I have disabled the markers in OnGameModeInit.

pawn Код:
CMD:mechanicduty(playerid)
{
    if(pMechanicDuty[playerid] == false){
        if(GetVehicleModel(GetPlayerVehicleID(playerid)) != 525) return SendClientMessage(playerid, COLOR_RED, "[ERROR:] You need to be in a Tow Truck in order to use this.");
        SetPlayerColor(playerid, COLOR_MECHANIC);
        new string[150]; format(string, 150, "[MECHANIC:] Mechanic %s is now on duty. Contact: %i", RemoveUnderScore(playerid), pInfo[playerid][pPhoneNumber]);
        pMechanicDuty[playerid] = true;
        return SendClientMessageToAll(COLOR_MECHANIC, string);
    }
    else{
        pMechanicDuty[playerid] = false;
        SetPlayerColor(playerid, COLOR_CIVILIAN);
        return SendClientMessage(playerid, COLOR_INFO, "[MECHANIC:] You are not on-duty anymore");
    }
}
Not to mention that I don't have ShowPlayerMar... anywhere in the script. :/
Reply
#2

Anyone please? This is really important for me.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)