Big TextDraw problem! - Help - 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: Big TextDraw problem! - Help (
/showthread.php?tid=401215)
Big TextDraw problem! - Help -
FL3GM4 - 22.12.2012
well, i tryingfew day about this textdraws but i cant ersolve this..
my textdraws doesn't shows :/
ongamemodeinit:
Код:
intulaz = TextDrawCreate(208 ,450 , "Ukucajte /enter za uci u interijer");
TextDrawFont(intulaz , 1);
TextDrawLetterSize(intulaz , 0.5, 3.5);
TextDrawColor(intulaz , 0xff0000FF);
TextDrawSetOutline(intulaz , false);
TextDrawSetProportional(intulaz , true);
TextDrawSetShadow(intulaz , 1);
intizlaz2 = TextDrawCreate(208 ,450 , "Ukucajte /enter za uci u interijer");
TextDrawFont(intulaz , 1);
TextDrawLetterSize(intulaz , 0.5, 3.5);
TextDrawColor(intulaz , 0xff0000FF);
TextDrawSetOutline(intulaz , false);
TextDrawSetProportional(intulaz , true);
TextDrawSetShadow(intulaz , 1);
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == intV) // If the player picks up the LSPD pickup that is previously defined
{
TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
}
if(pickupid == intB) // If the player picks up the LSPD pickup that is previously defined
{
TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
}
if(pickupid == intVLA) // If the player picks up the LSPD pickup that is previously defined
{
TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
}
if(pickupid == intGSF) // If the player picks up the LSPD pickup that is previously defined
{
TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
}
if(pickupid == intSTAFF) // If the player picks up the LSPD pickup that is previously defined
{
TextDrawShowForPlayer(playerid,intulaz); // Show the textdraw defined "gDoor"
}
if(pickupid == intIZLAZ) // If the player picks up the LSPD pickup that is previously defined
{
TextDrawShowForPlayer(playerid,intizlaz2); // Show the textdraw defined "gDoor"
}
return 1;
}
Re: Big TextDraw problem! - Help -
FL3GM4 - 22.12.2012
why my textdraws doesnt show, i thnik that my code is right, but nothing InGame
Re: Big TextDraw problem! - Help - Patrick - 22.12.2012
use GameTextForPlayer instead of textdraw
pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == intV) // If the player picks up the LSPD pickup that is previously defined
{
GameTextForPlayer(playerid, "Use /enter to enter the interior.",5000, 5);
}
about GameTextForPlayer try to check more in this link
https://sampwiki.blast.hk/wiki/GameTextForPlayer
Re: Big TextDraw problem! - Help -
FL3GM4 - 22.12.2012
thank you on help