need help with pickups please
#2

first you need to create the pickup ofcourse
pawn Код:
AddStaticPickup( .... );
then you need to detect if someone has picked it up
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
   // check where someone is - x, y and z are the pickup coords
   if (PlayerToPoint(playerid, 4, x, y, z))
   {
       SetPlayerPos(playerid, new x, new y, new z);
       SetPlayerFacingAngle(playerid, new angle);
       SetPlayerInterior(playerid, 0); // or any other as required
       SetPlayerVirtualWorld(playerid, 0); // or any other as required
    }
}
Reply


Messages In This Thread
need help with pickups please - by Guns_N_Roses - 22.02.2009, 09:19
Re: need help with pickups please - by [RP]Rav - 22.02.2009, 09:23
Re: need help with pickups please - by JaYmE - 22.02.2009, 09:25
Re: need help with pickups please - by Guns_N_Roses - 22.02.2009, 18:24
Re: need help with pickups please - by KnooL - 22.02.2009, 19:29
Re: need help with pickups please - by Guns_N_Roses - 22.02.2009, 22:14
Re: need help with pickups please - by Coicatak - 23.02.2009, 08:02
Re: need help with pickups please - by Guns_N_Roses - 23.02.2009, 08:59
Re: need help with pickups please - by [RP]Rav - 23.02.2009, 09:03
Re: need help with pickups please - by Guns_N_Roses - 23.02.2009, 09:09

Forum Jump:


Users browsing this thread: 1 Guest(s)