14.01.2015, 22:54
Hello, I want a plugin or something to show or list the .ini files inside scriptfiles when I type a command
CMD:listfactions(playerid, params[])
{
new dir:dHandle = dir_open("./scriptfiles/Groups/");
new item[40], type, string[128];
while(dir_list(dHandle, item, type))
{
strdel(item, strfind(item, ".ini"), strlen(item));
format(string, sizeof(string), "Files: %s.", item);
if(type == 2) return SendClientMessage(playerid, -1, string);
}
dir_close(dHandle);
return 1;
}