SA-MP Forums Archive
TextDraw hidden when player clicks? - 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 hidden when player clicks? (/showthread.php?tid=359522)



TextDraw hidden when player clicks? - jNkk - 14.07.2012

Hey, I'm wondering how to make so when somebody clicks ( LMB ) or any other key ( doesn't matter since I just wanna learn ) the textdraw closes ( basically TextDrawHideForPlayer ).

I've already did everything , like when you type /command, the textdraw shows. And then, when you click, textdraw closes. So how do you make it to close when you click?


Re: TextDraw hidden when player clicks? - SA-MPDrifter - 14.07.2012

This could be of some help: https://sampforum.blast.hk/showthread.php?tid=328267


Re: TextDraw hidden when player clicks? - Andi_Evandy - 14.07.2012

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE)
    {
        TextDrawHideForPlayer(playerid, /*TextDraw Name...*/);
        return 1;
    }
    return 1;
}