04.04.2009, 12:18
Well the problem is i want to show the admin on map without showing the players on map
To show the admin on map i will use command /onduty
PawnCode
Please can someone help me ?
To show the admin on map i will use command /onduty
PawnCode
Quote:
//----------------Admin on Duty // --------------------------------// if(strcmp(cmd, "/onduty", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1) { AdminDuty[playerid] = 1; SetPlayerArmour(playerid, 999); SetPlayerHealth(playerid, 999); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_WHITE, "Admin On Duty"); format(string, sizeof(string), "Admin %s is On Duty, Please /pme if you need help", sendername); SendClientMessageToAll(COLOR_YELLOW, string); SetPlayerColor(playerid, COLOR_YELLOW); // Orange return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !"); } } return 1; } //----------------Admin Off Duty // --------------------------------// if(strcmp(cmd, "/offduty", true) == 0) { if(IsPlayerConnected(playerid)) { if (PlayerInfo[playerid][pAdmin] >= 1) { AdminDuty[playerid] = 0; SetPlayerArmour(playerid, 0); SetPlayerHealth(playerid, 99); GetPlayerName(playerid, sendername, sizeof(sendername)); SendClientMessageToAll(COLOR_WHITE, "Admin Off Duty"); format(string, sizeof(string), "Admin %s is Off Duty, Please do not /pme", sendername); SendClientMessageToAll(COLOR_BLUE, string); SetPlayerColor(playerid, COLOR_WHITE); return 1; } else { SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !"); } } return 1; } |