How to hide a marker? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to hide a marker? (
/showthread.php?tid=314427)
How to hide a marker? -
Gerira Gaijin - 29.01.2012
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. :/
Re: How to hide a marker? -
Gerira Gaijin - 29.01.2012
Anyone please? This is really important for me.