20.04.2017, 09:30
so I have this command
when the admin use it he get visible on map as a marker but I have noticed that when ever someone's color change he get visible on map how to fix that?
PHP код:
CMD:aduty(playerid, params[])
{
if(adlvl[playerid] <2) return 0;
aDuty[playerid]=1;
new sendername[MAX_PLAYER_NAME], string[256];
GetPlayerName(playerid, sendername, sizeof(sendername));
SetPlayerHealth(playerid, 99999999);
SetPlayerArmour(playerid, 99999999);
SetPVarInt(playerid, "WantedLvl", GetPlayerWantedLevel(playerid));
SetPlayerWantedLevel(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "You are now an on-duty Administrator!");
format(string, sizeof(string), "%s is now on-duty Administrator. ", sendername);
SendClientMessageToAll(COLOR_GREEN, string);
SetPlayerColor(playerid, COLOR_GREEN);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid, 42, 10000);
GivePlayerWeapon(playerid, 39, 10000);
GivePlayerWeapon(playerid, 38, 10000);
GivePlayerWeapon(playerid, 34, 10000);
GivePlayerWeapon(playerid, 31, 10000);
GivePlayerWeapon(playerid, 29, 10000);
GivePlayerWeapon(playerid, 27, 10000);
GivePlayerWeapon(playerid, 24, 10000);
GivePlayerWeapon(playerid, 40, 1);
GivePlayerWeapon(playerid, 10, 1);
GivePlayerWeapon(playerid, 9, 1);
return 1;
}