Jump to content

Reset

Membru
  • Posts

    178
  • Joined

  • Last visited

  • Days Won

    4

Posts posted by Reset

  1. Salut,eu sunt nou pe aceasta comunitate,si unii nu stiu cum sa faca un anti-flood la comanda /report sau alte dialoguri.

    Deci sa incepem.

    Mergem la  public OnDialogResponse

    si scriem acest cod
     

    if(strfind(inputtext, "%", true) != -1)
    	{
    		SendClientMessage(playerid, COLOR_GENANNOUNCE, "SERVER: Invalid dialog input. You can't use %%.");
    		ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_INPUT, "Invalid dialog input", "Invalid dialog input", "OK", "Exit");
    		return 1;
    	}

    Daca puneti asta nu va mai poate pica nimeni prin comanda /report /changepass sau unele comenzi,care mai au dialoguri.

    Sper ca v-a placut,astept hate din partea celor care se dau marii.

    • Upvote 1
×
×
  • 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.