Help alittle.
#1

Problem. Well. The Animation of opening the door is going on evertime when I press 'enter' and everywhere. Doesn't matter if you are far away from the door. What I did wrong ?

Codes
Код:
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playerid, 2.0, 1293.5813,-1020.5617,1085.9760))
        if(!IsACop(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You are not an SAPD Officer.");
        ApplyAnimation(playerid, "HEIST9", "Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
        {
            if(pddoor1opened == false)
            {
                MoveDynamicObject(pddoor1, 1294.01, -1021.09, 1084.99, 0.50);
                pddoor1opened = true;
                return 1;
            }
            else
            {
                MoveDynamicObject(pddoor1, 1292.85, -1021.09, 1084.99, 0.50);
                pddoor1opened = false;
        	   	return 1;
            }
        }

	}
Reply


Messages In This Thread
Help alittle. - by Eugene. - 10.09.2012, 18:25
Re: Help alittle. - by mobiliz - 10.09.2012, 18:26
Re: Help alittle. - by CROSS_Hunter - 10.09.2012, 18:30
Re: Help alittle. - by CROSS_Hunter - 10.09.2012, 18:32
Re: Help alittle. - by mobiliz - 10.09.2012, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)