Pavel Tuček 1 Odesláno: 26. Prosinec, 2015 Share Odesláno: 26. Prosinec, 2015 Zdravím, rád bych se zeptal jestli neexistuje nejaká funkce které zjisti jestli se nečí jméno nacházi v banlistu. Link to comment Share on other sites More sharing options...
0 Amenadiel 286 Odesláno: 26. Prosinec, 2015 Share Odesláno: 26. Prosinec, 2015 Zdravím, rád bych se zeptal jestli neexistuje nejaká funkce které zjisti jestli se nečí jméno nacházi v banlistu. tak moje možnosti jsou asi takové. ukládal bych do souboru všechna jména co maj ban. a nebo bych to ukládal do db. jinak pawn nemá funkci na zjištění všech souboru ve složce. ale možná plugin to umožní. y_files to umí podle samp forum. Link to comment Share on other sites More sharing options...
0 Scydo 397 Odesláno: 27. Prosinec, 2015 Share Odesláno: 27. Prosinec, 2015 y_files to umí podle samp forum. ~> Ten ti vyčte celé složky, potřebuješ ještě něco, co ti vyčte i ten daný soubor. ~> Stejně je lepší si udělat vlastní. Člověk si pak i může přidat na čas, na nick, na IP.... A když už mluvíš o tom YSI, tak přes něj si můžeš udělat velice jednoduše a rychle nějaký banlist i s kontrolou. Tenhle jsem používal často a měl jsem ho hotový ani ne za 2 minuty a měl jsem po starostech: YCMD:ban(playerid, params[], help) { /* ... */ new INI: BanList = INI_Open("Data/Bans.txt"); INI_WriteBool(BanList, GetPlayerIps(id), true); INI_Close(BanList); /* ... */ defer Timer_KickBanPlayer(id, 1); return (true); } public NahratBanList(name[], value[]) { foreach(new i: Player) { if (!strcmp(name, GetPlayerIps(i))) { if (boolstr(value)) { defer Timer_KickBanPlayer(i, 0); } } } return (true); } timer Timer_CheckBanList[2000]() { INI_ParseFile("Data/Bans.txt", "NahratBanList"); } Link to comment Share on other sites More sharing options...
0 ATomas 291 Odesláno: 27. Prosinec, 2015 Share Odesláno: 27. Prosinec, 2015 (upraveno) ciste pawnem se tam asi nedostanes protoze ti nepovoli vycouvat ze slozky scriptfiles (../) ale pomoti HTTP dotazu si muzes vyvolat php script na svem serveru a vratit si to do pawna callbackem. Edited 27. Prosinec, 2015 by ATomas Link to comment Share on other sites More sharing options...
Dotaz
Pavel Tuček 1
Zdravím, rád bych se zeptal jestli neexistuje nejaká funkce které zjisti jestli se nečí jméno nacházi v banlistu.
Link to comment
Share on other sites
3 odpovědí na tuto otázku
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now