how would i make this - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: how would i make this (
/showthread.php?tid=237050)
how would i make this -
hadzx - 08.03.2011
how would i make this because crazybob has this awesome menu thingy heres a pic
thanks
Re: how would i make this -
Stigg - 08.03.2011
Its made with textdraws.
Use this:
http://forum.sa-mp.com/showthread.ph...extdraw+editor
Easy to use.
Re: how would i make this -
hadzx - 08.03.2011
Quote:
Originally Posted by Stigg
Its made with textdraws.
|
wow that must of taken agies ok well in textdraws how did he shadow the box?
Re: how would i make this -
Stigg - 08.03.2011
Quote:
Originally Posted by hadzx
wow that must of taken agies ok well in textdraws how did he shadow the box?
|
Look at my first post.
Once you get the hang of it, you'll be able to stuff like that easily.
Re: how would i make this -
admantis - 08.03.2011
You create a normal black box and set the alpha (opacity value) lower.
pawn Код:
0xFFFFFFFF // This is pure black
0xFFFFFF33 // This is transparent black
Re: how would i make this -
hadzx - 08.03.2011
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ thankyou!
Re: how would i make this -
Davz*|*Criss - 08.03.2011
Good one Stigg.
Re: how would i make this -
hadzx - 08.03.2011
ok ive made it also how did he make it so when you type for example in the chatbox (1) it selects option 1 i know its on playertext lol thanks
Re: how would i make this -
admantis - 08.03.2011
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
Re: how would i make this -
hadzx - 08.03.2011
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