/ban - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /ban (
/showthread.php?tid=117886)
/ban -
_Sami_ - 02.01.2010
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
Re: /ban -
Ironboy500 - 02.01.2010
Using dini and dudb.
Re: /ban -
_Sami_ - 02.01.2010
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
Re: /ban -
MadeMan - 02.01.2010
pawn Код:
new playerip[20];
GetPlayerIp(playerid, playerip, sizeof(playerip));
new File:banfile;
banfile = fopen("ban.cfg", io_append);
fwrite(banfile, playerip);
fclose(banfile);
Re: /ban -
_Sami_ - 02.01.2010
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