Searching through all userfiles and getting a value
#1

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:
PHP код:
new adminlvlstring[64];
// Some shit to search through all userfiles in the folder "users"
adminlvl // "Admin=" value grabbed from the file
if(adminlvl 0)
{
      
format(stringsizeof(string), "Name: %s | Level: %d"/*file name*/adminlvl);
      
SendClientMessage(playeridShitColorstring); 

Any ideas?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)