13.02.2014, 15:47
Hello there,
I want that the player textdraw is going to be hidden after pressing Escape (ESC) heres the code under OnPlayerClickPlayerTextDraw
Thanks in advance!
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;
}