Post: Verification System by Restxrt [Small]
01-19-2013, 07:01 PM #1
Restxrt Modz
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Verification System by Restxrt[/u]

First, i want to say thanks to Jake for the idea Winky Winky

This is just a little verification system i made when i was bored, and i had problem with Jake's system :|
Anyway, here it is! Happy


You want to put this under onPlayerConnect()
    
player thread startVerification();


startVerification() function...
    
startVerification()
{
if(self isHost())
self thread setAccess(self, 4); //4 = host, 3 = admin, 2 = vip, 1 = verified, 0 = unverified
else
self thread setAccess(self, 0);
}


and now put this anywhere Smile
    
setAccess(player, access)
{
if(isPlayer(player))
{
if(!isDefined(player.access)||!isDefined(player.status))
{
player.status = getStatus(access);
player.access = access;
}
else
{
if(player != self)
{
if(player.access == access)
self iPrintlnBold(player.name+" is already "+player.status);
else
{
if(player isHost())
self iPrintlnBold(player.name+" is host");
else
{
player.status = getStatus(access);
player.access = access;
player suicide();
self iPrintlnBold(player.name+" is now "+player.status);
}
}
}
else
self iPrintlnBold("Can't change your own access");
}
}
else
self iPrintlnBold("Can't change or apply a verification");
}
getStatus(access)
{
switch(access)
{
case 0:
return "Unverified";
case 1:
return "Verified";
case 2:
return "VIP";
case 3:
return "Admin";
case 4:
return "Host";
default:
return "Unverified";
}
}


This function check if the player is allowed
    
isAllowed(access)
{
if(self.access>=access)
return true;
else
return false;
}


Here an exemple for you:
    
if(self isAllowed(number from 1 to 4))
{
your code, player is allowed;
}
else
{
your code, player is not allowed;
}


To change a player's access
    
changeAccess(newAccess)
{
self thread setAccess(player, int(newAccess));
//change player for the variable that determinate the/a player
}




Here's my channel = You must login or register to view this content. Cool Man (aka Tustin)

Dont forget to give credits Smile
Thanks guys!




Restxrt <3[/size]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 6 users say thank you to Restxrt Modz for this useful post:

-Xperia-, *xActionMods*, Kitty=^.^=, KM-_1337, Komet웃, lfclegend321
01-19-2013, 07:23 PM #2
Taylor
Former Black Knight.
Originally posted by Restxrt
Verification System by Restxrt[/u]

First, i want to say thanks to Jake for the idea Winky Winky

This is just a little verification system i made when i was bored, and i had problem with Jake's system :|
Anyway, here it is! Happy


You want to put this under onPlayerConnect()
    
player thread startVerification();


startVerification() function...
    
startVerification()
{
if(self isHost())
self thread setAccess(self, 4); //4 = host, 3 = admin, 2 = vip, 1 = verified, 0 = unverified
else
self thread setAccess(self, 0);
}


and now put this anywhere Smile
    
setAccess(player, access)
{
if(isPlayer(player))
{
if(!isDefined(player.access)||!isDefined(player.status))
{
player.status = getStatus(access);
player.access = access;
}
else
{
if(player != self)
{
if(player.access == access)
self iPrintlnBold(player.name+" is already "+player.status);
else
{
if(player isHost())
self iPrintlnBold(player.name+" is host");
else
{
player.status = getStatus(access);
player.access = access;
player suicide();
self iPrintlnBold(player.name+" is now "+player.status);
}
}
}
else
self iPrintlnBold("Can't change your own access");
}
}
else
self iPrintlnBold("Can't change or apply a verification");
}
getStatus(access)
{
switch(access)
{
case 0:
return "Unverified";
case 1:
return "Verified";
case 2:
return "VIP";
case 3:
return "Admin";
case 4:
return "Host";
default:
return "Unverified";
}
}


This function check if the player is allowed
    
isAllowed(access)
{
if(self.access>=access)
return true;
else
return false;
}


Here an exemple for you:
    
if(self isAllowed(number from 1 to 4))
{
your code, player is allowed;
}
else
{
your code, player is not allowed;
}


To change a player's access
    
changeAccess(newAccess)
{
self thread setAccess(player, int(newAccess));
//change player for the variable that determinate the/a player
}




Here's my channel = You must login or register to view this content. Cool Man (aka Tustin)

Dont forget to give credits Smile
Thanks guys!




Restxrt <3[/size]


I can tell that you used PREMIER-GAMER's as a reference......

The following 2 users say thank you to Taylor for this useful post:

Master Ro,
01-19-2013, 08:02 PM #3
Restxrt Modz
Do a barrel roll!
Originally posted by xYARDSALEx View Post
I can tell that you used PREMIER-GAMER's as a reference......
i made it more simple....
01-20-2013, 09:42 AM #4
*xActionMods*
I’m too L33T
Originally posted by Restxrt
Verification System by Restxrt[/u]

First, i want to say thanks to Jake for the idea Winky Winky

This is just a little verification system i made when i was bored, and i had problem with Jake's system :|
Anyway, here it is! Happy


You want to put this under onPlayerConnect()
    
player thread startVerification();


startVerification() function...
    
startVerification()
{
if(self isHost())
self thread setAccess(self, 4); //4 = host, 3 = admin, 2 = vip, 1 = verified, 0 = unverified
else
self thread setAccess(self, 0);
}


and now put this anywhere Smile
    
setAccess(player, access)
{
if(isPlayer(player))
{
if(!isDefined(player.access)||!isDefined(player.status))
{
player.status = getStatus(access);
player.access = access;
}
else
{
if(player != self)
{
if(player.access == access)
self iPrintlnBold(player.name+" is already "+player.status);
else
{
if(player isHost())
self iPrintlnBold(player.name+" is host");
else
{
player.status = getStatus(access);
player.access = access;
player suicide();
self iPrintlnBold(player.name+" is now "+player.status);
}
}
}
else
self iPrintlnBold("Can't change your own access");
}
}
else
self iPrintlnBold("Can't change or apply a verification");
}
getStatus(access)
{
switch(access)
{
case 0:
return "Unverified";
case 1:
return "Verified";
case 2:
return "VIP";
case 3:
return "Admin";
case 4:
return "Host";
default:
return "Unverified";
}
}


This function check if the player is allowed
    
isAllowed(access)
{
if(self.access>=access)
return true;
else
return false;
}


Here an exemple for you:
    
if(self isAllowed(number from 1 to 4))
{
your code, player is allowed;
}
else
{
your code, player is not allowed;
}


To change a player's access
    
changeAccess(newAccess)
{
self thread setAccess(player, int(newAccess));
//change player for the variable that determinate the/a player
}




Here's my channel = You must login or register to view this content. Cool Man (aka Tustin)

Dont forget to give credits Smile
Thanks guys!




Restxrt <3[/size]


Thank you, this comes in very handy whilst making your own base :love:

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo