ItsMods

Full Version: Die on planting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

akim14

if player try to plant, he die. how can i do this?
Take a look at AvM. It has an anti-plant function
Download in description
Code:
while(1)
    {
        if(self getCurrentWeapon() == "briefcase_bomb_mp")
            {
                self takeWeapon("briefcase_bomb_mp");
                self iPrintLnBold("No planting!");
                self suicide();
            }
        wait 1;
    }

Edit: Damn you Azumikkel :<

akim14

error - unknow function 209052 Sad
Doing this may result in frustrated players. Just take away the bomb to prevent someone from planting it and be nice to your visitors.
(07-02-2011, 20:45)SuperNovaAO Wrote: [ -> ]Doing this may result in frustrated players. Just take away the bomb to prevent someone from planting it and be nice to your visitors.

This.
I make players fly away and say a random awkward sentence.
If they try to do a glitch (proning with your back against a wall so you can't fly away, or some shit, I never learned it myself) they'll get slain.

akim14

sorry for noob q, but how can i take away the bomb?
Code:
while(1)
    {
        if(self getCurrentWeapon() == "briefcase_bomb_mp")
            {
                self takeWeapon("briefcase_bomb_mp");
                self iPrintLnBold("1337 Anti - Planting Protection !");
                
            }
        wait 1;
    }

akim14

thanks. my last question: can someone write code for automatic press Attack Button?