CancelSelectTextdraw & CancelEdit - 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: CancelSelectTextdraw & CancelEdit (
/showthread.php?tid=376601)
CancelSelectTextdraw & CancelEdit -
Roel - 10.09.2012
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.
Re: CancelSelectTextdraw & CancelEdit -
Maxips2 - 10.09.2012
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
Re: CancelSelectTextdraw & CancelEdit -
Roel - 10.09.2012
Okay, Going to try this, Thanks