22.02.2009, 09:23
first you need to create the pickup ofcourse
then you need to detect if someone has picked it up
pawn Код:
AddStaticPickup( .... );
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
}
}

