key-strokes if
#10

codes did not work

I fixed;

pawn Код:
if((newkeys & KEY_FIRE) && (oldkeys & KEY_FIRE) || (newkeys & KEY_FIRE) && (oldkeys & KEY_HANDBRAKE))
           {
                    if(GetPlayerWeapon(playerid) == 41 && GraffitiBoyuyor[playerid] == 1)
                    {
           SetTimerEx("SprayBoyuyorKontrol", 500, false, "d", playerid);
                    }
           }
pawn Код:
forward SprayBoyuyorKontrol(playerid);
    public SprayBoyuyorKontrol(playerid)
    {
            new keys, ud, lr;
            GetPlayerKeys(playerid, keys, ud, lr);

            if (!(keys & CCKey))
            {
                    return false;
            }
                if(PlayerToPoint(5.0,playerid,Graffitiler[DuzenledigiGraffiti[playerid]][ObjeX],Graffitiler[DuzenledigiGraffiti[playerid]][ObjeY],Graffitiler[DuzenledigiGraffiti[playerid]][ObjeZ]))
                {
                    if(GetPlayerWeapon(playerid) == 41 && GraffitiBoyuyor[playerid] == 1)
                    {
                        Graffitiler[DuzenledigiGraffiti[playerid]][Kalan] -= 1;
                    }
                }
            return SetTimerEx("SprayBoyuyorKontrol",500, false, "d", playerid);
    }
Reply


Messages In This Thread
key-strokes if - by Omirrow - 28.03.2013, 18:11
Re: key-strokes if - by MP2 - 28.03.2013, 18:12
Re: key-strokes if - by Omirrow - 28.03.2013, 18:15
Re: key-strokes if - by Omirrow - 28.03.2013, 18:25
Re: key-strokes if - by MP2 - 28.03.2013, 18:55
Re: key-strokes if - by Omirrow - 28.03.2013, 18:56
Re: key-strokes if - by MP2 - 28.03.2013, 18:57
Re: key-strokes if - by Omirrow - 28.03.2013, 18:59
Re: key-strokes if - by Omirrow - 28.03.2013, 19:03
Re: key-strokes if - by Omirrow - 28.03.2013, 19:40

Forum Jump:


Users browsing this thread: 3 Guest(s)