pawn Код:
YCMD:verhack(playerid, params[], help)
{
if (help) SendClientMessage(playerid, 0xFF0000AA, "Para ver el log"); //ayuda y_ini
else
{
if (Informacion[playerid][pAdmin] < 10) return SendClientMessage(playerid, COLOR_GRAD2, "ЎNo autorizado!");
new File:file = fopen("AntiAdminHack.log",io_read);
new string[768],result[128];
if(file) {
while(fread(file,result)) {
strcat(string,result);
}
}
ShowPlayerDialog(playerid,LOG,DIALOG_STYLE_MSGBOX,"Contenido",string,"Aceptar","");
return 1;
}
return 1;
}