05.05.2016, 14:22
If the player goes on /aduty his blip is removed from radar, but when he goes off-duty his radar is visible again?
why is that happening
why is that happening
Код:
CMD:aduty(playerid, params[]) { if (PlayerData[playerid][pAdmin] < 1) return SendErrorMessage(playerid, "You don't have permission to use this command."); if (!PlayerData[playerid][pAdminDuty]) { SetPlayerColor(playerid, 0x33CC3300); PlayerData[playerid][pAdminDuty] = 1; SendClientMessageToAllEx(COLOR_GREEN, "%s {FFFFFF}Is Now On Admin Duty. {FFFF00}(/report For Assistance).", ReturnName(playerid, 0)); } else { SetPlayerColor(playerid, DEFAULT_COLOR); PlayerData[playerid][pAdminDuty] = 0; SendServerMessage(playerid, "You are no Longer on Admin Duty."); } return 1; }