Помогите пожалуйста с реализацией.
Добрый день уважаемы пользователи, pro-pawn.ru. Помогите пожалуйста реализовать показ даты разбана на сервера с датой и временем.
http://rgho.st/6zjgcjftK/image.png
PHP код:
public check_banlist(playerid)
{
new unbandate,vas[32],bool:ban,rows,fields,str[400];
cache_get_data(rows, fields);
if(rows)
{
cache_get_field_content(0, "unbandate", vas); unbandate = strval(vas);
if(unbandate - gettime() > 0) ban = true;
}
if(ban == true)
{
new data[20],whobanned[32],reason[40],timeban,nameak[24],ipban[16];
cache_get_field_content(0,"name",nameak);
cache_get_field_content(0,"ip",ipban);
cache_get_field_content(0,"bandate",data);
cache_get_field_content(0,"unbandate",vas); unbandate = strval(vas);
cache_get_field_content(0,"whobanned",whobanned);
cache_get_field_content(0,"reason",reason);
timeban = cache_get_field_content_int(0,"time");
f(str,"{F5DEB3}%s\n\
IP: %s\n\
Заблокировал: %s\n\
Дата блокировки: %s\n\
Заблокирован на: %d\n\
Причина: %s\n\n\
Дата разблокировки:\n",
nameak,ipban,whobanned,data,timeban,reason);
ShowPlayerDialog(playerid,D_NULL,0,"{33CCFF}Аккаунт заблокирован.",str,"ОК","");
SKick(playerid,28183);
}
return 1;
}