Answered Distinguishing Bots And Humans

Status
Not open for further replies.

The Dark Side

Former Staff Member
Messages
1,010
Reaction score
783
Points
993
Not as hard as it sounds, i just wanna know how to make your menu distinguish bots and real players. :smile:


If you dont know what i mean, it does it in this menu.^^
 

God

Skiddy
Messages
339
Reaction score
237
Points
593
search up "kick all bots" in Google, there's a code that only detects bots :smile:
 

The Dark Side

Former Staff Member
Messages
1,010
Reaction score
783
Points
993
search up "kick all bots" in Google, there's a code that only detects bots :smile:
I have that code already but it doesnt help me :disappointed:
could you explain what you mean by this?
When you open up your verification, bots will have "bot" labeled in the verification. :smile: Thats what i want in my menu.
 

Procyon

BANNED
Messages
325
Reaction score
119
Points
43
Not as hard as it sounds, i just wanna know how to make your menu distinguish bots and real players. :smile:


If you dont know what i mean, it does it in this menu.^^
For Sharks base something like this maybe?

Code:
if(player isBot())self optionthing("PlayersMenu", "[BOT] " + playerName, ::submenu, "pOpt " + i, "[BOT] " + playerName);else self optionthing("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
 

The Dark Side

Former Staff Member
Messages
1,010
Reaction score
783
Points
993
For Sharks base something like this maybe?

Code:
if(player isBot())self optionthing("PlayersMenu", "[BOT] " + playerName, ::submenu, "pOpt " + i, "[BOT] " + playerName);else self optionthing("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
You do not have permission to view link Log in or register now.


You're close! D: my code looks like

Code:
if (player.pers["isBot"]) self add_option("PlayersMenu", "[^3BOT^7] " + playerName, ::submenu, "pOpt " + i, "[^3BOT^7] " + playerName); else self add_option("PlayersMenu", playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
                self add_menu("pOpt " + i, "PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, "Co-Host");
               
                    self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
                    self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
                    self add_option("pOpt " + i, "VIP", ::changeVerificationMenu, player, "VIP");
                    self add_option("pOpt " + i, "Admin", ::changeVerificationMenu, player, "Admin");//kickPlayer
                    self add_option("pOpt " + i, "Co-Host", ::changeVerificationMenu, player, "Co-Host");
                    self add_option("pOpt " + i, "^3Kick Player^7", ::kickPlayer, player);
        }
}
 

Procyon

BANNED
Messages
325
Reaction score
119
Points
43
You do not have permission to view link Log in or register now.


You're close! D: my code looks like

Code:
if (player.pers["isBot"]) self add_option("PlayersMenu", "[^3BOT^7] " + playerName, ::submenu, "pOpt " + i, "[^3BOT^7] " + playerName); else self add_option("PlayersMenu", playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);
                self add_menu("pOpt " + i, "PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, "Co-Host");
              
                    self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
                    self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
                    self add_option("pOpt " + i, "VIP", ::changeVerificationMenu, player, "VIP");
                    self add_option("pOpt " + i, "Admin", ::changeVerificationMenu, player, "Admin");//kickPlayer
                    self add_option("pOpt " + i, "Co-Host", ::changeVerificationMenu, player, "Co-Host");
                    self add_option("pOpt " + i, "^3Kick Player^7", ::kickPlayer, player);
        }
}
Have you tried this way?
Code:
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
Maybe...?
 

BaDSooD

Old CCM Member
Premium Member
Messages
586
Reaction score
312
Points
688
The player menu is good (I have used this for my first menu)
And detected only bot is not realy used,but thank's for this :grinning:
 

The Dark Side

Former Staff Member
Messages
1,010
Reaction score
783
Points
993
Have you tried this way?
Code:
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
Maybe...?
Same thing happened. Its fien i can live without it. If you edit the verification directly, like add in a level something like this

Code:
verificationToNum(status)
{
    if(!isDefined(player.pers["isBot"]) && player.pers["isBot"])
    {
        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;
    }
    return 0;
}

And edited everything else, i could do it right?
 

Procyon

BANNED
Messages
325
Reaction score
119
Points
43
Add To onPlayerSpawned
Code:
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
    player.status = "BOT";
Change VerificationToColor
Code:
verificationToColor(status)
{
    if (status == "Host")
        return "^2Host";
    if (status == "Co-Host")
        return "^2Co-Host";
    if (status == "Admin")
        return "^7Admin";
    if (status == "VIP")
        return "^3V.I.P";
    if (status == "Verified")
        return "^1Verified";
    if (status == "BOT")
        return "^3BOT";
    else
        return "";
}
Haven't tested it but it might work.
 

The Dark Side

Former Staff Member
Messages
1,010
Reaction score
783
Points
993
Add To onPlayerSpawned
Code:
if(isDefined(player.pers["isBot"]) && player.pers["isBot"])
    player.status = "BOT";
Change VerificationToColor
Code:
verificationToColor(status)
{
    if (status == "Host")
        return "^2Host";
    if (status == "Co-Host")
        return "^2Co-Host";
    if (status == "Admin")
        return "^7Admin";
    if (status == "VIP")
        return "^3V.I.P";
    if (status == "Verified")
        return "^1Verified";
    if (status == "BOT")
        return "^3BOT";
    else
        return "";
}
Haven't tested it but it might work.
This works! Thank you! :smile: <3 Mod may close.
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,698
Reaction score
2,808
Points
1,053
Thread closed: Problem solved.
 
Status
Not open for further replies.
Top