04.03.2015, 13:04 
	
	
	
		I have a command that creates a jetpack for a player, but when they press enter and the jetpack appears next to them, I need to detect if they walk into it. How can I do this? 
	
	
	
	
 
	public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == 370)
    {
        // code
    }
     return 1;
}
| Where did you get id 370 from? Are you sure this works? Did you test it? | 
new jetpack;
//OnGameModeInit
jetpack = CreatePickup(370,...);
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == jetpack)
    {
        // code
    }
    return 1;
} 
 
	| How about you use your mind and look it up? Or what about testing it? hmm |