Posts: 90
Threads: 24
Joined: Feb 2011
Reputation:
0
Yo,
Is it possible to disable ESC button until OnPlayerSpawn?
I need this coz I made selectable textdraw as login... and when someone presses esc he cant select anymore.
Posts: 330
Threads: 65
Joined: Apr 2012
Reputation:
0
Why you not try this:
When they press ESC and if they not logged in then show the drawn next time if they do this more then 3 time kick.
Posts: 6,236
Threads: 310
Joined: Jan 2011
Reputation:
0
OnPlayerClickTextDraw gets called with INVALID_TEXT_DRAW. Do note however, OnPlayerClickPLAYERTextDraw is NOT.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
Gangasta: That would be correct.
The difference is one is for player textdraws the other is for standard global textdraws both can be intermixed and even if your only using player textdraws OnPlayerClickTextDraw() will still be called when cancelling your textdraw selection or pressing esc.
Posts: 4,885
Threads: 57
Joined: Jun 2012
Reputation:
0
My script will prevent any clickable textdraws from closing player textdraws and global textdraws alike by pressing escape it will only close when you do these lines which can actually be done anywhere in the script.
CloseTextDraw[playerid] = true;
CancelSelectTextDraw(playerid);
Posts: 90
Threads: 24
Joined: Feb 2011
Reputation:
0
I have set my login textdraws to OnPlayerClickPlayerTextDraw but when I click ESC it still Canceles select.