AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   change to .ini (https://forums.alliedmods.net/showthread.php?t=334955)

MacL 10-29-2021 13:52

change to .ini
 
.o

SHIFT0 10-29-2021 13:58

Re: change to .ini
 
What's the metter ?

MacL 10-29-2021 15:05

Re: change to .ini
 
Quote:

Originally Posted by SHIFT0 (Post 2761982)
What's the metter ?

i just need it. just do it if you can.

SHIFT0 10-29-2021 16:29

Re: change to .ini
 
ITs hard for me tell others

bigdaddy424 10-29-2021 18:42

Re: change to .ini
 
Code:
new const BanFile[] = "banned_players.dat" public isBanned(id) {     new AuthID[32];     get_user_authid(id, AuthID, 31)         new szLine[64], szArg1[32], szArg2[16], szArg3[16]         new FileOpen = fopen(BanFile, "rt")     while(!feof(FileOpen)) {         fgets(FileOpen, szLine, 63)         trim(szLine)                 parse(szLine, szArg1, 31, szArg2, 15, szArg3, 15)                 if (equali(szArg1, AuthID)) {             if (str_to_num(szArg3) != 0 || str_to_num(szArg2) + (str_to_num(szArg3) * 60) < get_systime())                 return false             return true         }     }     fclose(FileOpen) }
Contents inside BanFile will look like this
Code:

"steam id" "timestamp when ban occured" "minutes banned"


All times are GMT -4. The time now is 11:31.

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