02.03.2019, 12:42
Quote:
Code:
COMMAND:alog(playerid, params[]) { if ( playerData[playerid][playerLevel] < 2 ) return 0; if(playerData[playerid][showALog]) { TextDrawHideForPlayer(playerid, alog1); TextDrawHideForPlayer(playerid, alog2); TextDrawHideForPlayer(playerid, alog3); TextDrawHideForPlayer(playerid, alog4); TextDrawHideForPlayer(playerid, alog5); playerData[playerid][showALog] = false; return SendClientMessage(playerid, 0xFF0770FF, "[ADMIN] {FFFFFF}You have un-toggled the administration log."); } else { TextDrawShowForPlayer(playerid, alog1); TextDrawShowForPlayer(playerid, alog2); TextDrawShowForPlayer(playerid, alog3); TextDrawShowForPlayer(playerid, alog4); TextDrawShowForPlayer(playerid, alog5); SendClientMessage(playerid, 0xFF0770FF, "[ADMIN] {FFFFFF}You have toggled the administration log."); return playerData[playerid][showALog] = true; } return 1; } |