Textdraw & Pickup Showing
#1

Hey Guys.


We'll ive made a textdraw,
so what i want to happen is,
when the player goes onto the pickup the textdraw shows,
when he goes of the pickup (out of the range of pickup) the textdraw hides.


Код:
	if(pickupid == iLSPDEntrance)
	{
		TextDrawShowForPlayer(playerid,gDoor);
	}
	else
	{
		TextDrawHideForPlayer(playerid,gDoor);
	}
}
Ive got that, but it only dissapears if i go into the LSPD Interior?
Reply
#2

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == iLSPDEntrance)   // If the player picks up the LSPD pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,gDoor); // Show the textdraw defined "gDoor"
    }
    if(pickupid == iBANKEntrance)   // If the player picks up the Bank pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,gDoor2); // Show the textdraw defined "gDoor2"
    }
    if(pickupid == iCITYEntrance)   // If the player picks up the City Hall pickup that is previously defined
    {
        TextDrawShowForPlayer(playerid,gDoor3); // Show the textdraw defined "gDoor3"
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)