Textdraw & Pickup Showing - 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: Textdraw & Pickup Showing (
/showthread.php?tid=328484)
Textdraw & Pickup Showing -
NoZ - 25.03.2012
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?
Re: Textdraw & Pickup Showing -
The DeLuca - 25.03.2012
Код:
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;
}