Question Verification System

Discussion in 'Call of Duty: Black Ops 2 Scripts Questions' started by Ubstion, Apr 26, 2017.

  1. Ubstion

    Ubstion Member

    18
    9
    8
    Credits:
    108
    verificationToNum(status)
    {
    if (status == "Host")
    return 5;
    if (status == "CoHost")
    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 == "CoHost")
    return "^5CoHost";
    if (status == "Admin")
    return "^1Admin";
    if (status == "VIP")
    return "^4VIP";
    if (status == "Verified")
    return "^3Verified";
    else
    return "^7Unverified";
    }

    changeVerificationMenu(player, verlevel)
    {
    if( player.status != verlevel)
    {
    player.status = verlevel;

    self.menu.title destroy();
    self.menu.title = drawText("[" + verificationToColor(player.status) + "^7] " + player.name, "objective", 2, 280, 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")
    self thread destroyMenu(player);

    player suicide();
    self iPrintln("Set Access Level For " + player.name + " To " + verificationToColor(verlevel));
    player iPrintln("Your Access Level Has Been Set To " + verificationToColor(verlevel));
    }
    else
    {
    self iPrintln("Access Level For " + player.name + " Is Already Set To " + verificationToColor(verlevel));
    }
    }

    changeVerification(player, verlevel)
    {
    player.status = verlevel;
    }

    Iif(bool, rTrue, rFalse)
    {
    if(bool)
    return rTrue;
    else
    return rFalse;
    }

    This is my verification system but whenever i give someone any of the choice of status and try to change it to another my console freezes. If you could help put another verification system would be much appreciated. The Source i am using is Shark's Menu Base.
     

Share This Page