Inside of car gate and /heal system
#1

Ok I feel really stupid for asking this but could someone tell me what's wrong with this script?
Everything works fine while I'm on foot but as soon as I get in car the script stops working. Is the range too small or what? (Sorry for wasting your time but I'm really tired and I want to finish this today)
pawn Код:
if ((oldkeys & KEY_CTRL_BACK) && !(newkeys & KEY_CTRL_BACK))
        {
        if(IsPlayerInRangeOfPoint(playerid, 5.0,-76.5506,-353.0117,1.4297))
            {
            if(gTeam[playerid] == 6)
            {
                MoveObject(hgate,-74.55550,-352.80170,-2.35262,5,0.00000,0.00000,90.00000);
                SetTimer("hgateClose",5000,false);
                }
                return 1;
            }
        }
Also can someone give me an example of how to make a heal command? Something like /heal [id] gives health to the player (Sorry again for wasting your time)
Reply


Messages In This Thread
IsPlayerInRangeOfPoint inside of a car - by ZeroTheScyther - 22.07.2013, 00:02
Re: Inside of car gate and /heal system - by IceCube! - 22.07.2013, 00:06
Re: Inside of car gate and /heal system - by ZeroTheScyther - 22.07.2013, 00:10
Re: Inside of car gate and /heal system - by IceCube! - 22.07.2013, 00:17
Re: Inside of car gate and /heal system - by ReneG - 22.07.2013, 00:23
Re: Inside of car gate and /heal system - by IceCube! - 22.07.2013, 00:25
Re: Inside of car gate and /heal system - by ZeroTheScyther - 22.07.2013, 18:34

Forum Jump:


Users browsing this thread: 1 Guest(s)