Raised This Month: $ Target: $400
 0% 

A way to read a admin access by steamid?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 04-17-2007 , 13:20   Re: A way to read a admin access by steamid?
Reply With Quote #4

When the admin is offline I don't think you can get admin info from anything but the file.

Read the file, it's not a bad way.

Something like:
Code:
stock get_offline_flags(const SteamID[]) {         new file[64];     new len = get_localinfo("amxx_configsdir", file, 63);     copy(file[len], 63-len, "/users.ini");         new fh = fopen(file, "r");         new data[128];     new data2[32];         while( ! feof(fh) ) {                 fgets(fh, data, 127);                 trim(data);                 if ( ! data[0] || data[0] == '^n' || data[0] == ';' )             continue;                 if ( containi(data, SteamID) != -1 ) {             strbreak(data, data2, 31, data, 127);             strbreak(data, data2, 31, data, 127);             strbreak(data, data2, 31, data, 127);                         fclose(fh);             return read_flags(data2);         }     }         fclose(fh);     return 0; }

Last edited by [ --<-@ ] Black Rose; 04-17-2007 at 15:14.
[ --<-@ ] Black Rose is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:34.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode