[Tutorial] How to make a Anti C-Bug System !
#1

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 :

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return 1;
}
--> 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:

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 !
Reply


Messages In This Thread
How to make a Anti C-Bug System ! - by HY - 15.10.2014, 18:53
Re: How to make a Anti C-Bug System ! - by Abagail - 16.10.2014, 02:05
Re: How to make a Anti C-Bug System ! - by Th3UnKnOwN - 19.10.2014, 09:34
Re: How to make a Anti C-Bug System ! - by Glossy42O - 19.10.2014, 10:51
Re: How to make a Anti C-Bug System ! - by Rudy_ - 19.10.2014, 11:39
Re: How to make a Anti C-Bug System ! - by TwinkiDaBoss - 21.10.2014, 00:38
Respuesta: How to make a Anti C-Bug System ! - by aoEXE - 21.10.2014, 22:41
Re: Respuesta: How to make a Anti C-Bug System ! - by Crayder - 22.10.2014, 02:34
Respuesta: How to make a Anti C-Bug System ! - by aoEXE - 22.10.2014, 03:36

Forum Jump:


Users browsing this thread: 1 Guest(s)