[Tutorial] Anti C-bug - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Română/Romanian (
https://sampforum.blast.hk/forumdisplay.php?fid=40)
+----- Forum: Salonul Scripturilor (
https://sampforum.blast.hk/forumdisplay.php?fid=77)
+----- Thread: [Tutorial] Anti C-bug (
/showthread.php?tid=466837)
Anti C-bug -
ShikamaruSama - 29.09.2013
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.
Re: Anti C-bug -
IuLyAnBoSs - 29.09.2013
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.
Re: Anti C-bug -
ShikamaruSama - 29.09.2013
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.
Re: Anti C-bug -
IuLyAnBoSs - 30.09.2013
Ms mult pentru explicatie
Re: Anti C-bug -
DanishHaq - 01.10.2013
Bravo, mi-ai ajutat putin

).
Re: Anti C-bug -
FAStingTV - 25.10.2017
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