bugged presskey
#3

try this:

pawn Код:
if(gPlayerClass[playerid] == DEMOLITION)
    {
        if((newkeys & KEY_CROUCH) && (newkeys & KEY_FIRE) )
        {
            if(pSpawned[playerid] == 1)
            {
                if (GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
                {
                    if( hasbombs[playerid] == 1)
                    {
                        if(Planted[playerid] == 1)
                        {
                            GivePlayerWeapon(playerid, 40, 1);
                            ClearAnimations(playerid);
                            ApplyAnimation(playerid,"PED","bomber",4.0,0,0,0,0,1000);
                            SetTimerEx("Explode", 1200, 0, "i", playerid);
                            SetPlayerArmedWeapon(playerid, 0);
                            return 1;
                        }
                        if(Planted[playerid] == 0)
                        {
                            GetPlayerPos(playerid, bx[playerid], by[playerid], bz[playerid]);
                            C4[playerid] = CreateObject(1252, bx[playerid], by[playerid], bz[playerid]-1, -87.6624853592, 0.000000, 0.000000);
                            Planted[playerid] = 1;
                            ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,1000);
                            SendClientMessage(playerid,COLOR_YELLOW,"Bomb Planted, Press 'CROUCH + FIRE' to detonate it.");
                            return 1;
                        }
                    }
                }
            }
        }
    }
Reply


Messages In This Thread
bugged presskey - by manchestera - 15.10.2011, 20:02
AW: bugged presskey - by Drebin - 15.10.2011, 23:31
Re: bugged presskey - by Designer Vibe02 - 16.10.2011, 03:42
Re: bugged presskey - by manchestera - 16.10.2011, 13:50

Forum Jump:


Users browsing this thread: 2 Guest(s)