how would i make this
#10

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
Reply


Messages In This Thread
how would i make this - by hadzx - 08.03.2011, 21:12
Re: how would i make this - by Stigg - 08.03.2011, 21:14
Re: how would i make this - by hadzx - 08.03.2011, 21:15
Re: how would i make this - by Stigg - 08.03.2011, 21:16
Re: how would i make this - by admantis - 08.03.2011, 21:16
Re: how would i make this - by hadzx - 08.03.2011, 21:17
Re: how would i make this - by Davz*|*Criss - 08.03.2011, 21:18
Re: how would i make this - by hadzx - 08.03.2011, 21:34
Re: how would i make this - by admantis - 08.03.2011, 21:39
Re: how would i make this - by hadzx - 08.03.2011, 21:42

Forum Jump:


Users browsing this thread: 1 Guest(s)