07.08.2010, 23:12
At the top of your script:
Something like that i'm assuming is what you wanted.
pawn Код:
new TextDrawShown[MAX_PLAYERS][50];
pawn Код:
COMMAND:td(playerid, params[]) //Command for showing the textdraw.
{
ShowTextDrawForPlayer(playerid, TextDraw01);
TextDrawShown[playerid] = "TextDraw01";
return 1;
}
pawn Код:
public OnPlayerText(playerid, text[])
{
if(strcmp(TextDrawShown[playerid], "TextDraw01", true) == 0)
{
if(strcmp(text, "1", true) == 0)
{
//option 1.
TextDrawShown[playerid] = "None";
}
else if(strcmp(text, "2", true) == 0)
{
//option 2.
TextDrawShown[playerid] = "None";
}
}
return 1;
}