Bl1tzz Posted August 23, 2016 Posted August 23, 2016 Unde aţi întâmpinat problema: pe serverul meu de sampDescriere problemă: Cand cineva intra pe server si tasteaza comanda /reports, /changepass , iar acolo scrie %s, imi cade serveru si trebuie sa dau restart, cum pot sa evit aceasta problema. Poze/Video : nu e nevoie
0 marianc Posted August 25, 2016 Posted August 25, 2016 ar fi ok sa lasi sursa celor 2 comenzi daca doresti sa te ajute cineva.
0 Shaine Posted August 25, 2016 Posted August 25, 2016 Ai grija cand pica sa nu se loveasca ca e posibil sa se zgarie sau doamne fereste sa se strice rau de tot. Servicii Scripting Contra Cost https://www.facebook.com/developmentss/
0 Uzzi25 Posted August 25, 2016 Posted August 25, 2016 Pica servarul pica servarul ... Pica daca nu dai admin :))))) Cred ca problema asta apare si la alt topic da ma rog if(strfind(inputtext, "%", true) != -1) { new flooder[MAX_PLAYER_NAME]; new string10[100]; GetPlayerName(playerid, flooder, sizeof(flooder)); format(string10, sizeof(string10), "{f03337}Warning: %s(%d) tryes to flood server with dialog method.", flooder, playerid); SendClientMessageToAll(0, string10); SendClientMessage(playerid, COLOR_WHITE, "You have been kicked because you tried to flood server."); Ban(playerid); return 1; }
0 Alecsey Posted August 1, 2017 Posted August 1, 2017 On 8/25/2016 at 10:58 PM, Uzzi25 said: if(strfind(inputtext, "%", true) != -1) { new flooder[MAX_PLAYER_NAME]; new string10[100]; GetPlayerName(playerid, flooder, sizeof(flooder)); format(string10, sizeof(string10), "{f03337}Warning: %s(%d) tryes to flood server with dialog method.", flooder, playerid); SendClientMessageToAll(0, string10); SendClientMessage(playerid, COLOR_WHITE, "You have been kicked because you tried to flood server."); Ban(playerid); return 1; }
0 eltAndrei Posted August 1, 2017 Posted August 1, 2017 (edited) Instaleaza anti sql injection si nu o sa mai ai probleme. Cum il instalezi? Adaugi undeva la inceputul gamemode-ului asta; static const antisqlinjection[][] = { "'", "#", "`", "%" }; Iar publicul cu dialoguri in general OnDialogResponse adaugi asta: for(new i; i < sizeof(antisqlinjection); i++) { if(strfind(inputtext, antisqlinjection[i], true) != -1) { SCM(playerid, COLOR_GREEN, " Nu poti folosi aceste caractere."); return 1; } } Mult succes daca mai intampini probleme poti sa postezi aici. Edited August 1, 2017 by eltAndrei SKINS SYSTEM BY ELTANDREI >> CLICK << DMV SYSTEM BY ELTANDREI >> CLICK << (!)SERVER DISCORD: https://discord.gg/8Hwd8EF
Question
Bl1tzz
Unde aţi întâmpinat problema: pe serverul meu de samp
Descriere problemă: Cand cineva intra pe server si tasteaza comanda /reports, /changepass , iar acolo scrie %s, imi cade serveru si trebuie sa dau restart, cum pot sa evit aceasta problema.
Poze/Video : nu e nevoie
5 answers to this question
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