Raised This Month: $51 Target: $400
 12% 

change to .ini


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MacL
Member
Join Date: May 2021
Old 10-29-2021 , 13:52   change to .ini
Reply With Quote #1

.o

Last edited by MacL; 11-04-2021 at 18:21.
MacL is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 10-29-2021 , 13:58   Re: change to .ini
Reply With Quote #2

What's the metter ?
SHIFT0 is offline
MacL
Member
Join Date: May 2021
Old 10-29-2021 , 15:05   Re: change to .ini
Reply With Quote #3

Quote:
Originally Posted by SHIFT0 View Post
What's the metter ?
i just need it. just do it if you can.
MacL is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 10-29-2021 , 16:29   Re: change to .ini
Reply With Quote #4

ITs hard for me tell others

Last edited by SHIFT0; 11-04-2021 at 08:51. Reason: Fix my grammer and errors
SHIFT0 is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-29-2021 , 18:42   Re: change to .ini
Reply With Quote #5

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"
bigdaddy424 is offline
Reply



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 08:17.


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