SA-MP Forums Archive
Click to close 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: Click to close textdraw (/showthread.php?tid=327453)



Click to close textdraw - captainjohn - 21.03.2012

Hi, I have textdraws of the rules of the server for when you join the server.

How do I make it where you can click via the LMB (Left Mouse Button) or press enter to destroy the textdraws (So you can't see them with out re-typing the command /rules)?


Thanks.


Re: Click to close textdraw - Ronaldo_raul™ - 21.03.2012

Under your OnPlayerKeyStateChange callback

pawn Код:
if(newkeys == KEY_FIRE)
{
// Your HideTextdrawForPlayer Code.
}



Re: Click to close textdraw - captainjohn - 21.03.2012

Quote:
Originally Posted by Ronaldo_raul™
Посмотреть сообщение
Under your OnPlayerKeyStateChange callback

pawn Код:
if(newkeys == KEY_FIRE)
{
// Your HideTextdrawForPlayer Code.
}
Cheers mate!