Something that confused me
#19

I think this might match your needs:
pawn Code:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == pickme)
    {
        if(JustPicked[playerid] == 0)
        {            
            //Do stuff here
            JustPicked[playerid] = 1;
            SetTimerEx("Pickable", 5000, 1, "d", playerid);
        }
    }
    return 1;
}

public Pickable(playerid)
{
    if(!IsPlayerInRangeOfPoint(playerid, 3, pickupx, pickupy, pickupz))
    {
        JustPicked[playerid] = 0;
        KillTimer(Pickable);
    }
    return 1;
}
Didn't test it.
Reply


Messages In This Thread
Something that confused me - by PhoenixB - 22.08.2011, 12:29
Re: Something that confused me - by PhoenixB - 22.08.2011, 12:41
Re: Something that confused me - by Babul - 22.08.2011, 12:41
Re: Something that confused me - by PhoenixB - 22.08.2011, 12:47
Re: Something that confused me - by PhoenixB - 22.08.2011, 17:22
Re: Something that confused me - by veyron - 22.08.2011, 17:30
Re: Something that confused me - by Tee - 22.08.2011, 17:32
Re: Something that confused me - by PhoenixB - 22.08.2011, 17:32
Re: Something that confused me - by Tee - 22.08.2011, 17:34
Re: Something that confused me - by PhoenixB - 22.08.2011, 17:41
Re: Something that confused me - by Tee - 22.08.2011, 17:44
Re: Something that confused me - by PhoenixB - 22.08.2011, 17:56
Re: Something that confused me - by Tee - 22.08.2011, 17:58
Re: Something that confused me - by PhoenixB - 22.08.2011, 18:04
Re: Something that confused me - by veyron - 22.08.2011, 18:07
Re: Something that confused me - by Tee - 22.08.2011, 18:12
Re: Something that confused me - by PhoenixB - 22.08.2011, 18:15
Re: Something that confused me - by Tee - 22.08.2011, 18:17
Re: Something that confused me - by Adil - 22.08.2011, 18:24
Re: Something that confused me - by PhoenixB - 22.08.2011, 19:04
Re: Something that confused me - by Adil - 22.08.2011, 19:18
Re: Something that confused me - by PhoenixB - 22.08.2011, 19:50
Re: Something that confused me - by Adil - 22.08.2011, 19:55
Re: Something that confused me - by PhoenixB - 22.08.2011, 20:00
Re: Something that confused me - by PhoenixB - 23.08.2011, 16:16
Re: Something that confused me - by The.Atom - 25.08.2011, 01:03

Forum Jump:


Users browsing this thread: 1 Guest(s)