Jump to content
  • 0

pica..


Senal

Question

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!!!

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0
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.

Link to comment
Share on other sites

  • 0
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;
}
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.