[Tutorial] Anti C-bug
#1

Salutare tuturor , in acest tutorial va voi arata cum sa blocati c-bug-ul printr-o metoda foarte usoara.

In primul rand , deschideti Gamemodul cu Pawno , Notepad++.

Cautati in gamemode
Code:
public OnPlayerKeyStateChange
daca nu aveti aceasta linie o creati

Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

}
apoi vom adauga urmatorul cod la OnPlayerKeyStateChange.

Code:
if ((oldkeys & KEY_FIRE) && (newkeys & KEY_CROUCH))
	{
		new weapon = GetPlayerWeapon(playerid);
		if(weapon == 24) // weapon == 24 este deagle , daca vreti sa se blocheze c-bugul si la alte arme faceti in felul urmator: if(weapon == 24 || weapon == id la arma )
		{
			ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
			GameTextForPlayer(playerid, "~r~Stop c-bug !", 5000, 1); // in loc de Stop C-bug , scrieti ce vreti voi.
		}
}
Cod complet.
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if ((oldkeys & KEY_FIRE) && (newkeys & KEY_CROUCH))
	{
		new weapon = GetPlayerWeapon(playerid);
		if(weapon == 24) // weapon == 24 este deagle , daca vreti sa se blocheze c-bugul si la alte arme faceti in felul urmator: if(weapon == 24 || weapon == id la arma )
		{
			ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0);
			GameTextForPlayer(playerid, "~r~Stop c-bug !", 5000, 1); // in loc de Stop C-bug , scrieti ce vreti voi.
		}
}

}
Cam asta este tutorialul daca intampinati probleme postati mai jos.
Reply
#2

Am o intrebare, care este treaba cu c-bug ca am vazut multe posturi, adica in ce se manifesta si cum se manifesta, chiar is foarte curios.
Multumesc.
Reply
#3

Uite ce e c-bug

[ame]http://www.youtube.com/watch?v=-mn_-mqiBTg[/ame]

E ca un hack RapidFire daca inveti sa il faci rapid poti trage 7 gloante in 2 secunde.
Reply
#4

Ms mult pentru explicatie
Reply
#5

Bravo, mi-ai ajutat putin ).
Reply
#6

Poti sa faci ca cind face cnv c-bug sa ii transmita un mesaj admin-ului ca acel player face c-bug?As fi foarte recunoscator pentru asta daca mar ajuta cnv
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)