SA-MP Forums Archive
[Include] 3DMenu - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] 3DMenu (/showthread.php?tid=341079)

Pages: 1 2


3DMenu - SDraw - 09.05.2012

This include allows you to create new type of menu instead of standart menus or dialogs. Screenshots: imgur
URL: github.com


Re: 3DMenu - HeLiOn_PrImE - 09.05.2012

That is really nice....


Re: 3DMenu - TheDominator - 09.05.2012

Woah looks very nice, but you could try to improve the image.


Re: 3DMenu - TzAkS. - 09.05.2012

Its look great


Re: 3DMenu - (SC)=Sky= - 09.05.2012

Coool good job!


Re: 3DMenu - Mr.Fames - 09.05.2012

It looks great man really wonderful job.


Re: 3DMenu - Ballu Miaa - 09.05.2012

Nice work. Will surely use it or will make similar to this. Thanks. Rep +5 Added


Re: 3DMenu - TheArcher - 09.05.2012

Pretty cool. But this was iPleomax's idea. , good job though and thanks for share

Edit:

You could do

pawn Код:
#if defined FILTERSCRIPT
hook OnFilterScriptInit()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SelectedMenu[i] = -1;
        SelectedBox[i] = -1;
    }
    for(new i = 0; i < MAX_MENUS; i++)
    {
        for(new b = 0; b < 4; b++) MenuObjects[i][b] = INVALID_OBJECT_ID;
        MenuIsExist[i] = false;
        MenuBoxes[i] = 0;
    }
}
hook OnFilterScriptExit()
{
    for(new i = 0; i < MAX_MENUS; i++)
    {
        if(MenuIsExist[i]) Destroy3DMenu(i);
    }
}
#else
hook OnGameModeInit()
{
    for(new i = 0; i < MAX_MENUS; i++)
    {
        for(new b = 0; b < 4; b++) MenuObjects[i][b] = INVALID_OBJECT_ID;
        MenuBoxes[i] = 0;
        MenuIsExist[i] = false;
    }
}
hook OnGameModeExit()
{
    for(new i = 0; i < MAX_MENUS; i++)
    {
        if(MenuIsExist[i]) Destroy3DMenu(i);
    }
}
#endif
A better method to check before hooking.


Re: 3DMenu - SDraw - 09.05.2012

Yes, I saw the video of iPleomax...But it's not my fault that I released it early...


Respuesta: 3DMenu - Cacoby - 10.05.2012

Please, make a example code, like this image, sorry for my bad english :S


Re: 3DMenu - Juninho_Oakley - 10.05.2012

Nice


Re: 3DMenu - SDraw - 10.05.2012

Quote:
Originally Posted by TheArcher
Посмотреть сообщение
Pretty cool. But this was iPleomax's idea. , good job though and thanks for share

Edit:

You could do

pawn Код:
#if defined FILTERSCRIPT
hook OnFilterScriptInit()
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        SelectedMenu[i] = -1;
        SelectedBox[i] = -1;
    }
    for(new i = 0; i < MAX_MENUS; i++)
    {
        for(new b = 0; b < 4; b++) MenuObjects[i][b] = INVALID_OBJECT_ID;
        MenuIsExist[i] = false;
        MenuBoxes[i] = 0;
    }
}
hook OnFilterScriptExit()
{
    for(new i = 0; i < MAX_MENUS; i++)
    {
        if(MenuIsExist[i]) Destroy3DMenu(i);
    }
}
#else
hook OnGameModeInit()
{
    for(new i = 0; i < MAX_MENUS; i++)
    {
        for(new b = 0; b < 4; b++) MenuObjects[i][b] = INVALID_OBJECT_ID;
        MenuBoxes[i] = 0;
        MenuIsExist[i] = false;
    }
}
hook OnGameModeExit()
{
    for(new i = 0; i < MAX_MENUS; i++)
    {
        if(MenuIsExist[i]) Destroy3DMenu(i);
    }
}
#endif
A better method to check before hooking.
Yes, you are right, but when I try to do it on my PC, this doesn't work.....


Re: 3DMenu - SwiftKidZ - 10.05.2012

amazing work keep it up ^_^ i might us for my server update


Re: 3DMenu - Awankz - 10.05.2012

Nice


Re: 3DMenu - Lorenc_ - 10.05.2012

Very creative.


Re: 3DMenu - wups - 10.05.2012

Cool, I guess. Box selection with arrows would be much more convenient.
And another thing, that I don't like - you are creating global objects, when creating boxes. That means, although nobody is using the menu, the objects will still be there.


Re: 3DMenu - Iuri - 10.05.2012

good fs.


Re: 3DMenu - raider19rus - 10.05.2012

Wow, very nice.


Re: 3DMenu - SDraw - 10.05.2012

Quote:
Originally Posted by wups
Посмотреть сообщение
Cool, I guess. Box selection with arrows would be much more convenient.
And another thing, that I don't like - you are creating global objects, when creating boxes. That means, although nobody is using the menu, the objects will still be there.
Ok, I'll add params "playerid" and "worldid"


Re: 3DMenu - wups - 10.05.2012

Quote:
Originally Posted by SDraw
Посмотреть сообщение
Ok, I'll add params "playerid" and "worldid"
worldid is totaly useless when you have playerid param.
Anyway, you should only create the objects when the Show3DMenu function is used, and destroy them when Hide3DMenu function is called.