Jump to content

[Tutorial] Anti C-bug script


MeNyX

Recommended Posts

SALUT,va voi prezenta o metoda simpla de a opri C-bug-ul prin cel mai usor mod.

 

1.Cautati in gamemode

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{

}

2.apoi vom adauga urmatorul cod la OnPlayerKeyStateChange.

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

3. Codul Complet:

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

}

Enjoy,daca v-a fost de folos nu ezitati sa apasati butonul de +1. BAFTA ! 

  • Upvote 1

Y!M: menyx.official

Skype: menyx.official

 

 

Inainte de a critica o persoana indiferent de etnie/varsta/inteligenta ei uita-te la tine si nu uita ca toti suntem Oameni si ca nu are sens sa incerci sa pari diferit!Daca esti mai prost/destept decat cel scos/aflat in discutie incearca sa nu faci pe "MR. Inteligent" TACI si FACI!

Respecta membrii acestei comunitati daca ai pretentia sa fi respectat si tratat(a) ca pe o fiinta umana!

 

Nu fac nimic remarcabil, dar ceea ce fac este esenţial.•

 

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.