Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Unban everyone filterscript with FileManager plugin and Dini include.
- created by: paul988
- Downloads:
- * FileManager: http://forum.sa-mp.com/showthread.php?t=92246
- * Dini: http://forum.sa-mp.com/showthread.php?t=50
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <dini>
- #include <filemanager>
- #define ACCOUNT_DIR "./scriptfiles/accounts/" // Change this to your account directroy, remember to have './scriptfiles/' infront or it won't work.
- #define ACCOUNT_DIR_DINI "accounts/" // Change this to your account directory, do not use './scriptfiles/' infront here.
- #define DINI_BAN_VAR "banned" // Change this to the ban var you use in all your dini files.
- public OnFilterScriptInit()
- {
- new dir:handle = dir_open(ACCOUNT_DIR);
- new item[40 + 1], type;
- while(dir_list(handle, item, type))
- {
- if(type == FM_FILE)
- {
- format(item, sizeof(item), "%s%s", ACCOUNT_DIR_DINI, item);
- print(item);
- dini_IntSet(item, DINI_BAN_VAR, 0);
- }
- }
- dir_close(handle);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement