20.05.2015, 20:50
i installed filemanager plugin.
i created a command checkbanlist.(idk if i create it right)
i wanted to load a list of banned players ingame using /checkbanlist
and it would loaded the list of banned players in the banlog by dialog msg box. but idk how.
i created a command checkbanlist.(idk if i create it right)
Код:
CMD:checkbanlist(playerid, params[]) { if(PlayerAcc[playerid][Admin] >= 3) { stock LoadBansAsString(string[]) { new File: handle = fopen("banlog"), buf[200]; if(handle) { fread(handle, buf); return buf; } return 0; // bad file(handle couldn't be established) } } return 1; }
and it would loaded the list of banned players in the banlog by dialog msg box. but idk how.