SA-MP Forums Archive
Reading - 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)
+--- Thread: Reading (/showthread.php?tid=467994)



Reading - CloW - 05.10.2013

I create ban sistem.When player take ban his name create in folder Banned .ini file.
Now,i want create command for admins,when admins use this command print the names of all banned players.
Sory for my bad English,help me pls.


Re: Reading - Emmet_ - 05.10.2013

Assuming you're using zcmd:

pawn Код:
CMD:listbanned(playerid, params[]) {

    if (!IsPlayerAdmin(playerid))
        return 0;

    new
        File:fileReader = fopen("Banned.ini", io_read),
        string[200]
    ;
    if (fileReader)
    {
        while (fread(fileReader, string)) {
           SendClientMessage(playerid, -1, string);
        }
        fclose(fileReader);
    }
    return 1;
}



Re: Reading - TomatoRage - 05.10.2013

-delete-


Re: Reading - CloW - 05.10.2013

I want to load all files from folder banned.Not that Emmet bro.


Re: Reading - CloW - 06.10.2013

BUMP!