I am not able to select textdraw at first, but after I type command /std I am able? I don't get it.
Код:
QuitTDOnClick(playerid)//quit Text Draws On one Click
{
gPlayerStory[playerid]=0;
TextDrawSetSelectable(ClickQuit, 1);
TextDrawShowForPlayer(playerid,ClickQuit);
SelectTextDraw(playerid, COLOR_YELLOW);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if( (!strcmp(cmdtext,"/selecttextdraw",true,15) && !cmdtext[15]) || (!strcmp(cmdtext,"/std",true,4) && !cmdtext[4]) )
{
CancelSelectTextDraw(playerid);
SelectTextDraw(playerid, COLOR_YELLOW);
return 1;
}
}