Quote:
Originally Posted by admantis
Ugh that's more complex.
You need to make a variable to know if the player is seeing a box, so make this
pawn Код:
isviewingbox[MAX_PLAYERS];
When the player is viweing the box (command or anything)
pawn Код:
isviewingbox[playerid] = 1;
Then OnPlayerText
pawn Код:
new textval = strval(text[0]); if (textval == 1 && isviewingbox[playerid] == 1) { SendClientMessage(playerid, 0xFFFFFFAA, " You choosen option 1"); }
I don't know if it gonna work but at least you have got the idea
And remember to set the variable to 0 when player box is hidden
|
just thort of this
wrote most of it but might as well C&P It thanks