Jump to content
  • 0

Ajutor restart server & anti-flood


PinDer

Question

Descrierea problemei:Salut,deci am 2 probleme 1.Cind dau /restartserver imi apare numeratoarea inversa inta cind ajunge la 0 secunde nu se restarteaza serverul si uneori cind se da singur /restartserver poate sa nu se restarteze sa scrie in chat "server restarted ":server restarted" si sta asa pina dau restart de pe website de unde am cumparat Host-ul si a 2.problema este chestia aiai la cind vrei sa schimbi parola dai /changepass si daca dai %s floopzi serverul cum pot sasa fac ca sa nu se permita ast fel de caractere ca sa evit flood-area serverului ?
Liniile de cod / sursa / script-ul(obligatoriu):http://imgur.com/a/FnRRF
Imagini / Video (optional): http://imgur.com/a/FnRRF
Alte detalii:Va Rog Ajutatima!!!

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

  • 0

La public OnDialogResponse adauga asta

if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
  	{
		format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
	    SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
	}

Iar la restart arata comanda, publicul sau unde ar trebuie sa dea restart

  • Upvote 1

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
20 hours ago, Mister said:

La public OnDialogResponse adauga asta

if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
  	{
		format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
	    SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
	}

Iar la restart arata comanda, publicul sau unde ar trebuie sa dea restart

Cind adaug asta care mi-ai trimi si dau sa copilez nu se copileaza imi ca Pawn-ul nu cunctioneaza si ramine decit sa-l inchid 

Nu am inteles care comanda sa arat publicul

Link to comment
Share on other sites

  • 0

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                    PlayerInfo[playerid][pColor] = 0;
                    SCM(playerid, COLOR_WHITE,"{CECECE}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 1:
                {
                    PlayerInfo[playerid][pColor] = 1;
                    SCM(playerid, COLOR_WHITE,"{4169E1}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 2:
                {
                    PlayerInfo[playerid][pColor] = 2;
                    SCM(playerid, COLOR_WHITE,"{662BBE}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 3:
                {
                    PlayerInfo[playerid][pColor] = 3;
                    SCM(playerid, COLOR_WHITE,"{FFE600}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 4:
                {
                    PlayerInfo[playerid][pColor] = 4;
                    SCM(playerid, COLOR_WHITE,"{FF00FF}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 5:
                {
                    PlayerInfo[playerid][pColor] = 5;
                    SCM(playerid, COLOR_WHITE,"{3FFF3F}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 6:
                {
                    PlayerInfo[playerid][pColor] = 6;
                    SCM(playerid, COLOR_WHITE,"{83D553}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 7:
                {
                    PlayerInfo[playerid][pColor] = 7;
                    SCM(playerid, COLOR_WHITE,"{187700}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 8:
                {
                    PlayerInfo[playerid][pColor] = 8;
                    SCM(playerid, COLOR_WHITE,"{FF9A00}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 9:
                {
                    PlayerInfo[playerid][pColor] = 9;
                    SCM(playerid, COLOR_WHITE,"{222222}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
                case 10:
                {
                    PlayerInfo[playerid][pColor] = 10;
                    SCM(playerid, COLOR_WHITE,"{FF2C9D}Server:{FFFFFF} Nick color changed! Hope you like the new color!");
                }
            }
        }
    }
    if(dialogid == DIALOG_VEHSPAWN)

Link to comment
Share on other sites

  • 0

pai am scos codul tau care imi dadea eroare

// OnDialogResponse
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
      {
        format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
        SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
    }
{
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:

Link to comment
Share on other sites

  • 0

atunci ajutama tu daca stii cum

Am inclus si amum primesc 5 errori la pawno

 

la copilare

Primesc Aceste Errori la copilare
 

D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : error 017: undefined symbol "string"
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : error 017: undefined symbol "string"
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : warning 215: expression has no effect
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : error 001: expected token: ";", but found ")"
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

Liniile de la 42079 pina la  42102

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
////////////////////Andti-sql project///////////////////////////
{
if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
      {
        format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
        SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
     //am sters }  asta pentru ca mai jos era una...
     //////////////////Anti SQl Project//////////////////////////////////
    }
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {

Edited by PinDer
Link to comment
Share on other sites

  • 0
39 minutes ago, PinDer said:

atunci ajutama tu daca stii cum

Am inclus si amum primesc 5 errori la pawno

 

la copilare

Primesc Aceste Errori la copilare
 

D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : error 017: undefined symbol "string"
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : error 017: undefined symbol "string"
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : warning 215: expression has no effect
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : error 001: expected token: ";", but found ")"
D:\Denis\aaa2\Íîâàÿ ïàïêà\Gamemode\Gamemode\Gamemode\gamemodes\BigZoneGM.pwn(42086) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
 

Liniile de la 42079 pina la  42102

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
////////////////////Andti-sql project///////////////////////////
{
if(    strfind(inputtext, "%", true) != -1  ||
           strfind(inputtext, "'", true) != -1 ||
           strfind(inputtext, "`", true) != -1 ||
           strfind(inputtext, ";", true) != -1 )
      {
        format(string,sizeof(string),"* %s (%d) type inccorect character", PlayerName(playerid), playerid);
        SendClientMessage(playerid,COLOR_RED,"don't use this characters!");
        return 0;
     //am sters }  asta pentru ca mai jos era una...
     //////////////////Anti SQl Project//////////////////////////////////
    }
    new vehicleid = GetPlayerVehicleID(playerid);
    new sendername[25];
    new string[300];
    if(dialogid == 6267)
    {

new string[100];

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.