Help with pickup enter
#1

How a can create pickup with when player press enter to enter the pickup
Reply
#2

you got to use isplayerinrangeofpoint to do that....with onplayerpickupblablabla you cant use keys(actually you can but the code will be bigger than isplayerinrange...)
Reply
#3

can you make me the code
Reply
#4

is this what you want?if yes.. change the Cords and you have to work some more on it.. it's just a half example :P
pawn Код:
public OnGameModeInit()
{
   Pickup = CreatePickup(1559, 2, 0.0, 0.0, 0.0, 1);
   return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
   if(pickupid == Pickup){
       //Do something here
   }
   return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)