SA-MP Forums Archive
textdraw - 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 (/showthread.php?tid=328060)



textdraw - jimis - 23.03.2012

How i can remove a textdraw when a player type /something?


Re: textdraw - park4bmx - 23.03.2012

theres two choices
if you want to destroy it use
pawn Код:
TextDrawDestroy(textdrawid);
if you want just to hide it use
pawn Код:
TextDrawHideForPlayer(playerid, Textdrawid);



Re: textdraw - Allu - 23.03.2012

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     if(strcmp(cmd, "/something", true) == 9)
     {
        TextDrawDestroy(Textdraw); //This destroys the Textdraw
        TextDrawHideForPlayer(playerid, Textdraw); //This one just hides it
// Remember to choose only one of them for 1 specific textdraw
        return 1;
     }
 return 0;
}



Re: textdraw - jimis - 23.03.2012

Ok thanks guys