Senal Posted January 27, 2017 Posted January 27, 2017 salut. mai sunt copiii de astia care dau /report %s si /changepass %n si iti pica serverul.. dar am venit aici sa ma ajutati si sa-mi spuneti cum sa fac sa numai pice cand dau ei /report %s si /changepass %n. am nevoie urgent de ajutor si de un raspuns, multumesc!!!
0 Banditul Posted January 27, 2017 Posted January 27, 2017 Sa faci escape la stringurile pe care le trimiti la serveru de MySQL? Zic si eu......
0 ProAeXel Posted January 28, 2017 Posted January 28, 2017 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(COLOR_LIGHTRED, string10); SendClientMessage(playerid, COLOR_WHITE, "You have been kicked because you tried to flood server."); Ban(playerid); return 1; } Cred ca in continuare stii ce trebuie sa faci si ce sa mai schimbi prin liniile de cod.
0 [RW]Robi Posted January 28, 2017 Posted January 28, 2017 Acum 15 ore, ProAeXel a spus: Ban(playerid); You have been kicked, dar aici iti da Ban, hmm interesant. Kick(playerid);
0 Lendy Posted January 29, 2017 Posted January 29, 2017 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(COLOR_LIGHTRED, string10); SendClientMessage(playerid, COLOR_WHITE, "You have been kicked because you tried to flood server."); Kicked(playerid); return 1; }
Question
Senal
salut. mai sunt copiii de astia care dau /report %s si /changepass %n si iti pica serverul..
dar am venit aici sa ma ajutati si sa-mi spuneti cum sa fac sa numai pice cand dau ei /report %s si /changepass %n.
am nevoie urgent de ajutor si de un raspuns, multumesc!!!
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