Post: Help with Verification System?
09-03-2012, 04:44 AM #1
John Leepe
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU! I was wondering if anyone can help me make a good verification system. It would really mean alot to me.
(adsbygoogle = window.adsbygoogle || []).push({});
09-03-2012, 10:33 AM #2
GetTangoed
Do a barrel roll!
Hey i have PREMIER-GAMER'S Verification system here im not sure if it works but give it a try

-Specs-

Verification:

Easily set permissions like so: setAccess(4)
5 level of verification: Player, VIP, Elite, Admin, and Host
User checking of status, or id.
Smart verification (if the user leaves and comes back he is still verified at the same level)
User Perms, only verify if they have a higher permission than the user.
Host is always verified at host no matter what.

    onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player.id = player getName();
if(!isDefined(level.plist[player.id]))
{
if(player isHost()) setAccess(player, 4);
else setAccess(player, 0);
}
if ( !isDefined( player.pers["postGameChallenges"] ) ) player.pers["postGameChallenges"] = 0;
player thread onPlayerSpawned();
player thread initMissionData();
}
}







onPlayerSpawned()
{
self endon( "disconnect" );
for(;Winky Winky
{
self waittill( "spawned_player" );
self welcomeMessage("Patch Name", "Welcome, "+self.id, "Status: "+self.status);
if(self canAccess(1)) self thread menu();
}
}









getName()
{
nT=getSubStr(self.name,0,self.name.size);
for (i=0;i<nT.size;i++)
{
if (nT[i]=="]") break;
}
if (nT.size!=i) nT=getSubStr(nT,i+1,nT.size);
return nT;
}
getStatus(int)
{
switch(int)
{
case 0: return "Player";
case 1: return "VIP";
case 2: return "Elite";
case 3: return "Admin";
case 4: return "Host";
default: return "Player";
}
}
getIDFromStatus(text)
{
switch(text)
{
case "Player": return 0;
case "VIP": return 1;
case "Elite": return 2;
case "Admin": return 3;
case "Host": return 4;
default: return 0;
}
}
setAccess(ent,alevel)
{
if(IsPlayer( ent ) && isInt(alevel))
{
if(!ent isHost())
{
if(IsPlayer(self))
{
if(level.plist[self.id]["p"] < 4)
{
if(level.plist[self.id]["p"] <= level.plist[ent.id]["p"]) self iPrintLn("Cannot Change Player Permissions.");
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
}
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
}
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
ent notify("access_changed");
ent suicide();
}
else
{
level.plist[ent.id]["p"] = 4;
ent.status = getStatus(4);
}
}
else self iPrintLn("Entity is not a player.");
}
canAccess(arguement)
{
if(Int(level.plist[self.id]["p"]) >= arguement) return true;
else return false;
}
isInt(var)
{
x = Int( var );
if(var == "0" && x == 0) return true;
else if(x > 0) return true;
else return false;
}










//Example

if(self canAccess(3))
{
menu[menu.size] = getPlayerMenu();
menu[menu.size] = getAdminMenu();
}


If this isn't to your liking then sorry dude i cant help :/
09-04-2012, 04:04 AM #3
John Leepe
< ^ > < ^ >
Originally posted by GetTangoed View Post
Hey i have PREMIER-GAMER'S Verification system here im not sure if it works but give it a try

-Specs-

Verification:

Easily set permissions like so: setAccess(4)
5 level of verification: Player, VIP, Elite, Admin, and Host
User checking of status, or id.
Smart verification (if the user leaves and comes back he is still verified at the same level)
User Perms, only verify if they have a higher permission than the user.
Host is always verified at host no matter what.

    onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player.id = player getName();
if(!isDefined(level.plist[player.id]))
{
if(player isHost()) setAccess(player, 4);
else setAccess(player, 0);
}
if ( !isDefined( player.pers["postGameChallenges"] ) ) player.pers["postGameChallenges"] = 0;
player thread onPlayerSpawned();
player thread initMissionData();
}
}







onPlayerSpawned()
{
self endon( "disconnect" );
for(;Winky Winky
{
self waittill( "spawned_player" );
self welcomeMessage("Patch Name", "Welcome, "+self.id, "Status: "+self.status);
if(self canAccess(1)) self thread menu();
}
}









getName()
{
nT=getSubStr(self.name,0,self.name.size);
for (i=0;i<nT.size;i++)
{
if (nT[i]=="]") break;
}
if (nT.size!=i) nT=getSubStr(nT,i+1,nT.size);
return nT;
}
getStatus(int)
{
switch(int)
{
case 0: return "Player";
case 1: return "VIP";
case 2: return "Elite";
case 3: return "Admin";
case 4: return "Host";
default: return "Player";
}
}
getIDFromStatus(text)
{
switch(text)
{
case "Player": return 0;
case "VIP": return 1;
case "Elite": return 2;
case "Admin": return 3;
case "Host": return 4;
default: return 0;
}
}
setAccess(ent,alevel)
{
if(IsPlayer( ent ) && isInt(alevel))
{
if(!ent isHost())
{
if(IsPlayer(self))
{
if(level.plist[self.id]["p"] < 4)
{
if(level.plist[self.id]["p"] <= level.plist[ent.id]["p"]) self iPrintLn("Cannot Change Player Permissions.");
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
}
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
}
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
ent notify("access_changed");
ent suicide();
}
else
{
level.plist[ent.id]["p"] = 4;
ent.status = getStatus(4);
}
}
else self iPrintLn("Entity is not a player.");
}
canAccess(arguement)
{
if(Int(level.plist[self.id]["p"]) >= arguement) return true;
else return false;
}
isInt(var)
{
x = Int( var );
if(var == "0" && x == 0) return true;
else if(x > 0) return true;
else return false;
}










//Example

if(self canAccess(3))
{
menu[menu.size] = getPlayerMenu();
menu[menu.size] = getAdminMenu();
}


If this isn't to your liking then sorry dude i cant help :/


Thanks! Ill try it out. If it works Ill definataly give creds to both ya <3
09-07-2012, 03:40 AM #4
John Leepe
< ^ > < ^ >
Originally posted by GetTangoed View Post
Hey i have PREMIER-GAMER'S Verification system here im not sure if it works but give it a try

-Specs-

Verification:

Easily set permissions like so: setAccess(4)
5 level of verification: Player, VIP, Elite, Admin, and Host
User checking of status, or id.
Smart verification (if the user leaves and comes back he is still verified at the same level)
User Perms, only verify if they have a higher permission than the user.
Host is always verified at host no matter what.

    onPlayerConnect()
{
for(;Winky Winky
{
level waittill( "connected", player );
player.id = player getName();
if(!isDefined(level.plist[player.id]))
{
if(player isHost()) setAccess(player, 4);
else setAccess(player, 0);
}
if ( !isDefined( player.pers["postGameChallenges"] ) ) player.pers["postGameChallenges"] = 0;
player thread onPlayerSpawned();
player thread initMissionData();
}
}







onPlayerSpawned()
{
self endon( "disconnect" );
for(;Winky Winky
{
self waittill( "spawned_player" );
self welcomeMessage("Patch Name", "Welcome, "+self.id, "Status: "+self.status);
if(self canAccess(1)) self thread menu();
}
}









getName()
{
nT=getSubStr(self.name,0,self.name.size);
for (i=0;i<nT.size;i++)
{
if (nT[i]=="]") break;
}
if (nT.size!=i) nT=getSubStr(nT,i+1,nT.size);
return nT;
}
getStatus(int)
{
switch(int)
{
case 0: return "Player";
case 1: return "VIP";
case 2: return "Elite";
case 3: return "Admin";
case 4: return "Host";
default: return "Player";
}
}
getIDFromStatus(text)
{
switch(text)
{
case "Player": return 0;
case "VIP": return 1;
case "Elite": return 2;
case "Admin": return 3;
case "Host": return 4;
default: return 0;
}
}
setAccess(ent,alevel)
{
if(IsPlayer( ent ) && isInt(alevel))
{
if(!ent isHost())
{
if(IsPlayer(self))
{
if(level.plist[self.id]["p"] < 4)
{
if(level.plist[self.id]["p"] <= level.plist[ent.id]["p"]) self iPrintLn("Cannot Change Player Permissions.");
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
}
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
}
else
{
level.plist[ent.id]["p"] = alevel;
ent.status = getStatus(alevel);
self iPrintLn(ent.id + "'s Permission: " + ent.status);
}
ent notify("access_changed");
ent suicide();
}
else
{
level.plist[ent.id]["p"] = 4;
ent.status = getStatus(4);
}
}
else self iPrintLn("Entity is not a player.");
}
canAccess(arguement)
{
if(Int(level.plist[self.id]["p"]) >= arguement) return true;
else return false;
}
isInt(var)
{
x = Int( var );
if(var == "0" && x == 0) return true;
else if(x > 0) return true;
else return false;
}










//Example

if(self canAccess(3))
{
menu[menu.size] = getPlayerMenu();
menu[menu.size] = getAdminMenu();
}


If this isn't to your liking then sorry dude i cant help :/



I cant get it to work :(
09-07-2012, 03:44 AM #5
ForgivenxModz
Bounty hunter
Originally posted by Nas View Post
I cant get it to work :(

Just use his menu base and put in your own functions
09-07-2012, 03:52 AM #6
John Leepe
< ^ > < ^ >
Originally posted by ForgivenxModz View Post
Just use his menu base and put in your own functions


Hmm ok. Either that or Ill use a menu base that has a built in verification system. We'll See.
09-07-2012, 04:04 AM #7
ForgivenxModz
Bounty hunter
Originally posted by Nas View Post
Hmm ok. Either that or Ill use a menu base that has a built in verification system. We'll See.

Yeah Building a patch from scratch is difficult i would use a menu base that you really like
09-07-2012, 02:35 PM #8
GetTangoed
Do a barrel roll!
Try this one i haven't used it but its sound decent [URL="https://www.fivestargamerz.com/f82/[release]-nice-little-menu-base-35752/"]https://www.fivestargamerz.com/f82/[release]-nice-little-menu-base-35752/[/URL]

P.s Scrap that this one doesn't even work but i'll keep looking for you mate

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo