Quote:
Originally Posted by Natric
Hello there,
I want that the player textdraw is going to be hidden after pressing Escape (ESC) heres the code under OnPlayerClickPlayerTextDraw
pawn Код:
if(ShowingStats[playerid]) { if(playertextid == Textdraw28) { HidePlayerStatusTextDraws(playerid); CancelSelectTextDraw(playerid); SendClientMessage(playerid, COLOR_YELLOW, "The textdraw was canceled successfuly!."); ShowingStats[playerid] = 0; return 1; } else { HidePlayerStatusTextDraws(playerid); CancelSelectTextDraw(playerid); SendClientMessage(playerid, COLOR_YELLOW, "The textdraw was canceled successfuly!."); } return 1; }
Thanks in advance!
|
You can also do when the player presses ESC You can set them to another world like: SetPlayerVirtualWorld or something.