SA-MP Forums Archive
Help with pickup enter - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help with pickup enter (/showthread.php?tid=291103)



Help with pickup enter - boyan96 - 18.10.2011

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


Re: Help with pickup enter - Pharrel - 18.10.2011

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...)


Re: Help with pickup enter - boyan96 - 18.10.2011

can you make me the code


Re: Help with pickup enter - Mr_Scripter - 18.10.2011

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;
}