06.10.2013, 15:50
pawn Код:
new
gPickupID;
public OnFilterScriptInit()
{
gPickupID = CreatePickup( 1239, 23, X, Y, Z );
return 1;
}
public OnPlayerPickUpPickup( playerid, pickupid )
{
if ( pickupid == gPickupID )
{
GameTextForPlayer(playerid, "~w~Type ~r~/enter ~w~to go inside");
SetPlayerPos(playerid, your position);
}
return 1;
}