Jump to content
  • 0

pomoc klikaci textdraw


SkP_Teddy

Dotaz

čaute, mám jeden problém s ktorým si neviem poradiť. ide o to že keď mám zobrazený textdraw a stačím esc zmizne mi tá šípka ale texdraw tam zostane zobrazený. no a ja to potrebujem spraviť tak aby mi to po stačení esc zmizlo všetko. dík.

public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
    if(_:playertextid != INVALID_TEXT_DRAW)
    {
        if(playertextid == PTDID[playerid][20])
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw 20.");
        }
        if(playertextid == PTDID[playerid][26])
        {
            SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw 26.");
        }
        for(new a=15; a<27; a++){ PlayerTextDrawDestroy(playerid, PTDID[playerid][a]);}
        CancelSelectTextDraw(playerid);
    }else {
        for(new a=15; a<27; a++){ PlayerTextDrawDestroy(playerid, PTDID[playerid][a]); }
    }
    return 1;
}
Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...