23.04.2012, 22:03
I've tried to look at YSF's functions but I can't really manage to understand them.
What I'm basically trying to do is searching through the whole "users/" directory, file by file, extracting admin value and showing it on a Client Message if it's above 1.
Ex:
Any ideas?
What I'm basically trying to do is searching through the whole "users/" directory, file by file, extracting admin value and showing it on a Client Message if it's above 1.
Ex:
PHP код:
new adminlvl, string[64];
// Some shit to search through all userfiles in the folder "users"
adminlvl = // "Admin=" value grabbed from the file
if(adminlvl > 0)
{
format(string, sizeof(string), "Name: %s | Level: %d", /*file name*/, adminlvl);
SendClientMessage(playerid, ShitColor, string);
}