Post: Someone help me with verify all?
01-24-2016, 07:14 PM #1
fxyts
Keeper
(adsbygoogle = window.adsbygoogle || []).push({}); Ok I have tried adding verify all to my menu but never works :( i would freeze or when i change it around it will load the game but nothing happens.

    doUnverif()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host");
}
else
{
player.Verified = false;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
player suicide();
self iPrintln( player.name + " is ^1Unverfied" );
}
}

UnverifMe()
{
self.Verified = false;
self.VIP = false;
self.Admin = false;
self.CoHost = false;
}

Verify()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
self iPrintln( player.name + " is ^1Verified" );
}
}
doVIP()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = true;
player.Admin = false;
player.CoHost = false;
self iPrintln( player.name + " is ^3VIP" );
}
}
doAdmin()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = true;
player.Admin = true;
player.CoHost = false;
self iPrintln( player.name + " is ^1Admin" );
}
}
doCoHost()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
if (player.CoHost == false)
{
player UnverifMe();
self iPrintln( player.name + " is ^5Co-Host" );
player NoKill();
}
}
}
NoKill()
{
self iprintln("^5Welcome ^1"+ self.name+"^5 To CFW Menu || ^2Press [{+speed_throw}] & [{+melee}] to Open!");
self.Verified = true;
self.VIP = true;
self.Admin = true;
self.CoHost = true;
self.MyAccess = "^5Co-Host";
self thread BuildMenu();
}


AllPlayersKilled()
{
foreach(player in level.players)
{
if(player isHost())
{

}
else
{
player suicide();
}
}
self iPrintln("All Players: ^2Killed !");
}

Test()
{
foreach(player in level.players)
{
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
}
}
self iPrintln("All Players: ^2Verified !");
}



The test() is the verify all but just having problems with it..
can anyone point me in the right direction and thanks if you take the time to help out.
(adsbygoogle = window.adsbygoogle || []).push({});
01-24-2016, 07:21 PM #2
HiddenHour
I defeated!
Originally posted by fxyts View Post
Ok I have tried adding verify all to my menu but never works :( i would freeze or when i change it around it will load the game but nothing happens.

    doUnverif()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Un-Verify the Host");
}
else
{
player.Verified = false;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
player suicide();
self iPrintln( player.name + " is ^1Unverfied" );
}
}

UnverifMe()
{
self.Verified = false;
self.VIP = false;
self.Admin = false;
self.CoHost = false;
}

Verify()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
self iPrintln( player.name + " is ^1Verified" );
}
}
doVIP()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = true;
player.Admin = false;
player.CoHost = false;
self iPrintln( player.name + " is ^3VIP" );
}
}
doAdmin()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = true;
player.Admin = true;
player.CoHost = false;
self iPrintln( player.name + " is ^1Admin" );
}
}
doCoHost()
{
player = level.players[self.Menu.System["ClientIndex"]];
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
if (player.CoHost == false)
{
player UnverifMe();
self iPrintln( player.name + " is ^5Co-Host" );
player NoKill();
}
}
}
NoKill()
{
self iprintln("^5Welcome ^1"+ self.name+"^5 To CFW Menu || ^2Press [{+speed_throw}] & [{+melee}] to Open!");
self.Verified = true;
self.VIP = true;
self.Admin = true;
self.CoHost = true;
self.MyAccess = "^5Co-Host";
self thread BuildMenu();
}


AllPlayersKilled()
{
foreach(player in level.players)
{
if(player isHost())
{

}
else
{
player suicide();
}
}
self iPrintln("All Players: ^2Killed !");
}

Test()
{
foreach(player in level.players)
{
if(player isHost())
{
self iPrintln("You can't Verify the Host");
}
else
{
player UnverifMe();
player.Verified = true;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
}
}
self iPrintln("All Players: ^2Verified !");
}



The test() is the verify all but just having problems with it..
can anyone point me in the right direction and thanks if you take the time to help out.


In test() all you did was change the verification variables. Wouldn't you have to make the player activate the menu initiation function (is it BuildMenu()?)
01-24-2016, 08:28 PM #3
fxyts
Keeper
Originally posted by TheHiddenHour View Post
In test() all you did was change the verification variables. Wouldn't you have to make the player activate the menu initiation function (is it BuildMenu()?)


Oh yes thanks my brain is not working at all will give it a try with the variables thanks bud
01-25-2016, 03:50 AM #4
fxyts
Keeper
still dont work lol tried adding the buildmenu and other stuff to it :(
01-25-2016, 05:41 AM #5
HiddenHour
I defeated!
Originally posted by fxyts View Post
still dont work lol tried adding the buildmenu and other stuff to it :(


Quote people so they know you answered them. What menu base are you using?
01-25-2016, 11:43 AM #6
this is the code i used in my menu:


verifyall()
{
self iPrintln("Everyone verified!");
foreach(player in level.players)
{
if( player.status != "Verified" || player.status != "VIP" || player.status != "Admin" || player.status != "Co-Host" && !player isHost())
{
self thread changeVerificationMenu(player, "Verified");
}
}
}

try this one
01-25-2016, 01:31 PM #7
fxyts
Keeper
Originally posted by TheHiddenHour View Post
Quote people so they know you answered them. What menu base are you using?



Project Unknown V8

I removed all the mods in his menu to use the menu base and wanted to verify all
You must login or register to view this content.

also tried the coding with buildmenu but it freezing my menu on screen when i click it...
01-25-2016, 01:33 PM #8
fxyts
Keeper
Originally posted by Mhegge View Post
this is the code i used in my menu:


verifyall()
{
self iPrintln("Everyone verified!");
foreach(player in level.players)
{
if( player.status != "Verified" || player.status != "VIP" || player.status != "Admin" || player.status != "Co-Host" && !player isHost())
{
self thread changeVerificationMenu(player, "Verified");
}
}
}

try this one


this would not work as i dont have a string changeVerificationMenu in my menu and the rest of the code i have tried like that it seems to freeze
01-25-2016, 10:53 PM #9
HiddenHour
I defeated!
Originally posted by fxyts View Post
this would not work as i dont have a string changeVerificationMenu in my menu and the rest of the code i have tried like that it seems to freeze


Use CODE tags to make it easier to read
    verifyAll()
{
foreach(player in level.players)
{
if(!player isHost() && !player.Verified)
{
player UnverifMe();
player.Verified = true;
player.VIP = false;
player.Admin = false;
player.CoHost = false;
player.MyAccess = "^1Verified";
player thread BuildMenu();
}
}
}

try this

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo