GSC Bossam's Minimap Menu

BullyWiiPlaza

Modder
Messages
214
Reaction score
174
Points
818
(Small Story: He released a video of his v6 and someone ask for the shader which he used in the welcome message (it was the 3rd loading think).
I got it :grinning:
Code:
lui_loader_no_offset
so hes gonna sell his source code, which has the codes from nearly every Modder in the GSC community? that's the definition of a LeechHole (Leecher + arsehole)
Also I won't leak it, he asked me not to do it too. :disappointed:
 

Syndicate

Modder
Messages
671
Reaction score
551
Points
908
i understand not to leak his base as he put it together but his functions should be leaked as he didn't even create half of them
 

BullyWiiPlaza

Modder
Messages
214
Reaction score
174
Points
818
Yes, it is Sharks's base but he didn't edit it himself. He hired someone.
Lol, agreed, that's actually pathetic. What did he even need to be done since he already used a menu base? Sure, the overflow fix has been added and maybe the menu background stuff but yeah. I don't know xD
 

BullyWiiPlaza

Modder
Messages
214
Reaction score
174
Points
818
Yeah, I didn't do it but he was comming to me and ask for a better verify menu. :grinning:
Uhm, not sure how this is different from Shark's functions :sweatsmile:
Code:
verificationtonum(status)
{
    if(status == "Host")
    {
        return 5;
    }
    if(status == "Co-Host")
    {
        return 4;
    }
    if(status == "Admin")
    {
        return 3;
    }
    if(status == "VIP")
    {
        return 2;
    }
    if(status == "Verified")
    {
        return 1;
    }
    else
    {
        return 0;
    }
}

verificationtocolor(status)
{
    if(status == "Host")
    {
        return "^2Host";
    }
    if(status == "Co-Host")
    {
        return "^5Co-Host";
    }
    if(status == "Admin")
    {
        return "^1Admin";
    }
    if(status == "VIP")
    {
        return "^4VIP";
    }
    if(status == "Verified")
    {
        return "^3Verified";
    }
    if(status == "Unverified")
    {
        return "";
    }
    else
    {
        return "^1Unknown";
    }
}

changeverificationmenu(player, verlevel)
{
    if(player.status != verlevel)
    {
    }
    if(player.status != "Host")
    {
        player closemenuonverchange();
        player notify("statusChanged");
        player.status = verlevel;
        player givemenu();
        if(self.menu.open)
        {
            self.menu.title destroy();
            self.menu.title = drawtext("[" + verificationtocolor(player.status) + "^7] " + getplayername(player), "objective", 2, 250, 30, (1, 1, 1), 0, (0, 0.58, 1), 1, 3);
            self.menu.title fadeovertime(0.3);
            self.menu.title.alpha = 1;
        }
        if(player.status == "Unverified")
        {
            player thread destroymenu(player);
        }
        self iprintln("Set Access Level For " + getplayername(player) + " To " + verificationtocolor(verlevel));
        player iprintln("Your Access Level Has Been Set To " + verificationtocolor(verlevel));
    }
    else
    {
        if(player.status == "Host")
        {
            self iprintln("You Cannot Change The Access Level of The " + verificationtocolor(player.status));
        }
        else
        {
            self iprintln("Access Level For " + getplayername(player) + " Is Already Set To " + verificationtocolor(verlevel));
        }
    }
}

changeverification(player, verlevel)
{
    player closemenuonverchange();
    player notify("statusChanged");
    player.status = verlevel;
    player givemenu();
    if(player.status == "Unverified")
    {
        player thread destroymenu(player);
    }
    player iprintln("Your Access Level Has Been Set To " + verificationtocolor(verlevel));
}

getplayername(player)
{
    playername = getsubstr(player.name, 0, player.name.size);
    i = 0;
    while(i < playername.size)
    {
        if(playername[i] == "]")
        {
            break;
        }
        i++;
    }
    if(playername.size != i)
    {
        playername = getsubstr(playername, i + 1, playername.size);
    }
    return playername;
}
 

AdamWasHere

Known Member
Messages
31
Reaction score
5
Points
108
Nice to see some stuff but this is extremly bad coded, you can do it much easier with inputs:

Code:
self add_option("MiniMapsMenu", "MiniMap", ::func_changeminimap, "INPUT"); //INPUT with the name goes here.

Example:
self add_option("MiniMapsMenu", "Octane MiniMap", ::func_changeminimap, "em_bg_ani_octane");


Reset it with:
::func_changeminimap_reset

Function:
Code:
func_changeminimap(i)
{
    maps/mp/_compass::setupminimap(i);
    self iprintlnbold("Minimap set to ^2"+i+"");
}

func_changeminimap_reset()
{
    maps/mp/_compass::setupminimap();
    self iprintlnbold("Minimap set to ^2Default");
}

He did it that way because when you pick a mini-map it shows in the iprintln what the code is and he didn't want people to know them e.e
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
5,016
Reaction score
2,897
Points
1,103
He did it that way because when you pick a mini-map it shows in the iprintln what the code is and he didn't want people to know them e.e
Probably but he can still add another argument for the text being displayed so no excuses or bad coding :tonguewink:
Yeap, you can do this with inputs or with the name of the String in the menu. :smile:
 
Top