Ruslan_Catton
Умник
помогите перевести на Mysql мод skrillax буду очень благодарен:bu:
Код:
if(strcmp(cmd, "/geton", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 4)
{
new akk[256],ssss[256];
akk = strtok(cmdtext, idx);
if(!strlen(akk)) return SendClientMessage(playerid,COLOR_GREY, "Введите: /geton [Аккаунт]");
format(string,sizeof(string), "Users/%s.ini",akk);
if(!fexist(string))
{
SendClientMessage(playerid,COLOR_GREY, "Игрок не найден");
return true;
}
else
{
new stringi[256];
new File = ini_openFile(string);
ini_getString(File, "Online",stringi);
ini_closeFile(File);
format(ssss,sizeof(ssss), "Последний раз заходил(а) %s",akk,stringi);
SendClientMessage(playerid,COLOR_GREEN,ssss);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Вы не уполномочены использовать эту команду!");
}
return true;
}
