15.10.2014, 18:53
Introduction:
--> Hello, I will show you, how to make a Anti C-Bug System ( You can't do C-BUG ) !
--> This it's a simple tutorial !
Start:
--> We need to go under :
--> Something like this in pawno :
--> We find it more simple by "CTRL + F" and write in box "OnPlayerStateChange"
After that, under OnPlayerKeyStateChange, etc we need to add:
--> Something like this in pawno (all code) :
Last Words:
--> It's a simple tutorial, for newbies I think it's usefull !
--> Don't judge me if you don't like, just leave the thread !
--> Hello, I will show you, how to make a Anti C-Bug System ( You can't do C-BUG ) !
--> This it's a simple tutorial !
Start:
--> We need to go under :
pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
return 1;
}
--> We find it more simple by "CTRL + F" and write in box "OnPlayerStateChange"
After that, under OnPlayerKeyStateChange, etc we need to add:
pawn Code:
public OnPlayerStateChange(playerid, newstate, oldstate) // public
{ // open brackelet
if ((oldkeys KEY_FIRE) && (newkeys & KEY_CROUCH)) // if they press Left Mouse Button (key fire) and "C" button, look down
{ // open brackelet
new weapon = GetPlayerWeapon(playerid); // will get his weapon (deagle in our case)
if(weapon == 24) // ID 24 = Deagle, change in what C-Bug gun do you want !
{ // open brackelet *2
ApplyAnimation(playerid,"GYMNASIUM","gym_tread_falloff",1.0,0,0,0,0,0); // will apply a animation, wich he will fall down !
GameTextForPlayer(playerid, "~r~Stop c-bug !", 5000, 1); // he will saw on screen "Stop C-Bug" and will remove his deagle (gun)
} // close brackelet
} // close brackelet *2
return 1; // return value
} // close last brackelet *3
--> Something like this in pawno (all code) :
Last Words:
--> It's a simple tutorial, for newbies I think it's usefull !
--> Don't judge me if you don't like, just leave the thread !