SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 06/12/2019, 04:04 AM   #1
GTQ
Little Clucker
 
Join Date: Jun 2019
Posts: 1
Reputation: 0
Default [Help]About the textdraw!

When the player presses ESC, close TextDraw.
Please answer!!
GTQ is offline   Reply With Quote
Old 06/12/2019, 11:19 AM   #2
Vizi10
Huge Clucker
 
Join Date: May 2017
Location: Iran
Posts: 329
Reputation: 8
Default Re: [Help]About the textdraw!

If the textdraw selectable and you not want close the textdraw with ESC key, you should show again all textdraws for player in public OnPlayerClickTextDraw.

pawn Code:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
        if(clickedid == INVALID_TEXT_DRAW)
        {
            //SendClientMessage(playerid, 0xFF0000FF, "You pressed ESC/Cancelled the textdraw");
        }
        return 1;
}
Vizi10 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Making a Health/armour textdraw! (Global textdraw) -Rebel Son- Tutorials 22 21/02/2020 01:27 AM
Created a textdraw from Zamaroht's Textdraw Editor JeevanJyothish Scripting Help 1 26/08/2014 06:10 AM
Moving a textdraw on the y-axis doesn't work. (TextDraw Editor) AndySedeyn Scripting Help 1 14/06/2014 02:50 PM
[FilterScript] [FS] TextDraw editor 0.6 - Multiple textdraw support, for proffesional textdraws Zamaroht Filterscripts 369 20/01/2013 02:46 PM
[Tutorial] --: Creating Textdraw's In The Easiest Way :-- [Helpful for textdraw creators] Nirzor Tutorials 15 04/10/2012 12:32 PM


All times are GMT. The time now is 03:24 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.