#1

I have a ban command .I want that when an admin types /ban so the one who is banned ,his/her IP stores in scriptfiles in ban.cfg

Only give me an idea how to store in ban.cfg in scriptfiles .Thanks so much
Reply
#2

Using dini and dudb.
Reply
#3

Quote:
Originally Posted by Ironboy500
Using dini and dudb.
i know and i tried but it was giving me too errors and i deleted it only a simple example which will write in ban.cfg
Reply
#4

pawn Код:
new playerip[20];
GetPlayerIp(playerid, playerip, sizeof(playerip));

new File:banfile;
banfile = fopen("ban.cfg", io_append);
fwrite(banfile, playerip);
fclose(banfile);
Reply
#5

Quote:
Originally Posted by MadeMan
pawn Код:
new playerip[20];
GetPlayerIp(playerid, playerip, sizeof(playerip));

new File:banfile;
banfile = fopen("ban.cfg", io_append);
fwrite(banfile, playerip);
fclose(banfile);
thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)