CancelSelectTextdraw & CancelEdit
#1

Hello,

Is there a way to detect when I player cancels one of those with his ESC key?
Because I want to remove some textdraw when he cancels and I want to save the coords of the object when he cancels.
Or is there a way to disable the esc for this.
Reply
#2

for textdraws:

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(_:clickedid == INVALID_TEXT_DRAW)
    {
                 // Code
    }
    return 1;
}
P.S. its also being called if its a player text draw.

as for objects, check if the response type is EDIT_RESPONSE_CANCEL
Reply
#3

Okay, Going to try this, Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)