Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:hide(playerid)
- {
- if(pAdmin[playerid] < 1)
- return Error(playerid, "You are not authorized to use this command!");
- if(pHidden[playerid] == 0)
- {
- pHidden[playerid] = 1;
- format(str, sizeof(str), ""RED_E"* ADMIN-MSG: "GREY_E"%s(%i) has hidden himself from the admin list.", pName[playerid], playerid);
- SendAdminMessage(COLOR_GREY, str);
- SendClientMessage(playerid, COLOR_YELLOW, "- AS - "RED_E"You have hidden yourself from the admin list!");
- SendClientMessage(playerid, COLOR_YELLOW, "- AS - "RED_E"Type /hide again to display yourself on the list.");
- }
- else
- {
- pHidden[playerid] = 0;
- SendClientMessage(playerid, COLOR_YELLOW, "- AS - "GREEN_E"You will now be displayed on the admin list!");
- if(pLogged[playerid] == true)
- {
- format(query, sizeof(query), "UPDATE players SET hidden=%d WHERE reg_id=%d", pHidden[playerid], pRegID[playerid]);
- MySQL_updateQuery(query);
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement