Jump to content

Question

Posted

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

  • 0
Posted
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
Posted
Acum 15 ore, ProAeXel a spus:

Ban(playerid);

You have been kicked, dar aici iti da Ban, hmm interesant.

Kick(playerid);

 

                        

 

 

  • 0
Posted
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;
}

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 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.