18.07.2014, 10:55
Hello, How to make the menu in mselection hide when press ESC? because its keep bugging..
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if( _:playertextid == INVALID_TEXT_DRAW )//ESC pressed
{
//hide the text draw
}
return 1;
}
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if(playertextid == gPlayerTextDraw[playerid])
{
SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");
CancelSelectTextDraw(playerid);
}
return 1;
}
pawn Код:
|