29.09.2013, 18:24
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
daca nu aveti aceasta linie o creati
apoi vom adauga urmatorul cod la OnPlayerKeyStateChange.
Cod complet.
Cam asta este tutorialul daca intampinati probleme postati mai jos.
In primul rand , deschideti Gamemodul cu Pawno , Notepad++.
Cautati in gamemode
Code:
public OnPlayerKeyStateChange
Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { }
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. } }
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. } } }