[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


Messages In This Thread
Anti C-bug - by ShikamaruSama - 29.09.2013, 18:24
Re: Anti C-bug - by IuLyAnBoSs - 29.09.2013, 19:20
Re: Anti C-bug - by ShikamaruSama - 29.09.2013, 19:31
Re: Anti C-bug - by IuLyAnBoSs - 30.09.2013, 15:19
Re: Anti C-bug - by DanishHaq - 01.10.2013, 17:58
Re: Anti C-bug - by FAStingTV - 25.10.2017, 06:42

Forum Jump:


Users browsing this thread: 1 Guest(s)