Jump to content

Repararea celui mai mare bug din modul PEN1


heatON

Recommended Posts

Modul Public Enemy NO:1 Mod creat de Denver(Astro) are un bug destul de nasol:

Orice player care isi face cont are sansa sa devin admin level 50000 doar tastand /regnick <cenzurez codul> (este un cod de vreo 14 litere)

am gasit bugul si o metoda sa fie reparat

in mod gasiti liniile acestea:

public Encript(string[])
{
	for(new x=0; x < strlen(string); x++)
	  {
		  string[x] += (3^x) * (x % 15);
		  if(string[x] > (0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	return 1;
}

public Decript(string[])
{
	if (gdebug){printf("DEBUG string = %s", string);}
	for(new x=0; x < strlen(string); x++)
	  {
		  string[x] -= (3^x) * (x % 15);
		  if(string[x] > (0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	if (gdebug){printf("DEBUG decript = %s", string);}
	return 1;
}
aceste linii dau sansa playerilor sa fie admini cand vor ei sa fie reparat inlocuiti acele linii cu acestea:
public Encript(string[])
{
	/*for(new x=0; x < strlen(string); x++)
	  {
		  string[x] += (3^x) * (x % 15);
		  if(string[x] > (0xff))
		  {
			  string[x] -= 256;
		  }
	  }*/
	return 1;
}

public Decript(string[])
{
	/*if (gdebug){printf("DEBUG string = %s", string);}
	for(new x=0; x < strlen(string); x++)
	  {
		  string[x] -= (3^x) * (x % 15);
		  if(string[x] > (0xff))
		  {
			  string[x] -= 256;
		  }
	  }
	if (gdebug){printf("DEBUG decript = %s", string);}*/
	return 1;
}

puteti observa ca am pus doar niste /* */ ca sa nu mai aiba nici un efect

Acum acel cod nu mai va avea efect

Simplu si usor de facut

Sper sa va fie de folos ;)

© Copyright goes to heatON!

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

Link to comment
Share on other sites

de ce nu ziceti si voi codul?Daca tampitii astia de straini flodeaza serverele noastre macar sa fim admini pe ale lor

Trimiteti un PM macar.Va rog

NU!! sa nu cumva sa-i da-ti careva parola

ACEST COD E INTERZIS SI CN IL VA POSTA VA MERITA UN BAN

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

Link to comment
Share on other sites

Ai luat din gm meu bugu rezolvat ;)

au la el acest topic mai exista in scripting de mai bn de 5 luni, au la el are tupeu sa zica k lam luat din gm lui cand nici macr nu-l am

http://www.sa-mp.ro/forum/index.php?topic=431.0        November 27, 2008

n-a poate tu ai aflat de aici cum se scapa de bug

Imi aduc aminte cand jucam pe versiunea 0.1.. ala era SA-MP adevarat.

Va salut cu respect (pe cei care merita).

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
Reply to this topic...

×   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.

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