SA-MP Forums Archive
How do I make this? - 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: How do I make this? (/showthread.php?tid=468095)



How do I make this? - IPlayGames000 - 06.10.2013

How do I make the little floating thing that looks like an "i" or a "!" where you walk into it it shows you text?

Really need to know how to do this, thanks.


Re: How do I make this? - Emmet_ - 06.10.2013

pawn Код:
new
    gPickupID;

public OnFilterScriptInit()
{
    gPickupID = CreatePickup( 1239, 23, X, Y, Z );
    return 1;
}

public OnPlayerPickUpPickup( playerid, pickupid )
{
    if ( pickupid == gPickupID )
    {
        // Put your code here
    }
    return 1;
}



Re: How do I make this? - Jankingston - 06.10.2013

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