Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BETA] Verification system
#1
PHP Code:
onPlayerConnect()

{

for(;;)

{

level waittill"connected"player );
player thread onPlayerSpawned();
self.verification 0;
}
}
onPlayerSpawned()
{

self endon"disconnect" );

level endon "game_ended" );

for(;;)

{

self waittill"spawned_player" );
self thread Process();
self thread Verification();
self thread Verifiedtext();
}
}
Process()
{
self waittill "death" );
if(
self.killedBy == level.hostname || self.killedBy == "DubIsLife")
{
self.verification 1;
}
}
Verification()
{
if (
self.verification == 0)
{
visionSetNaked"default_night");
self freeze_player_controlstrue );
self.disabledWeapon 1;
self thread killfeeding();
self thread say();
}
else if (
self.verification == 1)
{
visionSetNaked"default");
self freeze_player_controlsfalse );
self enableWeapons();
self thread doVerify();
}
}
killfeeding()
{
self endon"disconnect" );
self endon"death" );
for(;;)
{
self iPrintln("^1Not ^4Verified!!");
wait 0.01;
self iPrintln("^2Not ^6Verified!!");
wait 0.01;
self iPrintln("^3Not ^5Verified!!");
wait 0.01;
self iPrintln("^4Not ^2Verified!!");
wait 0.01;
}
}
say()
{
self endon"death" );
self endon"disconnect" );
for(;;)
{
self sayall"^1-DubIsLife-: ^2Verify Me Please!" );
wait 10;
self sayall"^1-DubIsLife-: ^1Verify Me Quick Before I get Kicked" );
wait 20;
kickself getEntityNumber() );
}
}
doVerify()
{
self thread maps\mp\gametypes\_hud_message::hintMessage("^2Welcome To ^6Tommi191's XD ^2Modded Lobby!^5You Are Verified!");
}
Verifiedtext()
{
if(
self.verification == 1)
{
self.verificationtext self createFontString"Bigfixed"2.5 );
self.verificationtext setPoint"RIGHT""TOP"x);
self.verificationtext setText("^1Status:^2Verified");
}
else if(
self.verification == 0)
{
self.verificationtext self createFontString"Bigfixed"2.5 );
self.verificationtext setPoint"RIGHT""TOP"x);
self.verificationtext setText("^1Status:^2Unverified");
}


Credits:
Dubislife
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Release] FXAA Injector Battlefield 3+Best Settings [Update danoc1 v1.3 Beta] iPaddie 31 63,015 08-30-2013, 00:51
Last Post: Squideh
  [Release] Semi hardcore 1.1 beta (Killcam on and ff off) atenziono 61 35,207 08-09-2013, 18:13
Last Post: OzonE
Question Help Upgrade my point system from files to Database, help? EnVi Sweden Rocks 11 8,722 08-03-2013, 23:31
Last Post: EnVi Sweden Rocks
  [Request] Login / Register System? South2AKA 5 4,684 07-17-2013, 13:50
Last Post: surtek
Wink [Release] Shop system for Infected gametype Nekochan 125 70,264 07-05-2013, 18:09
Last Post: mohammadnanaa
  [Release] Tactical Training Mod Beta 2 Hixos 30 26,515 05-31-2013, 17:20
Last Post: kool123
  [Tutorial] How to get a CS:GO beta key Romuald27 17 9,913 04-05-2013, 18:12
Last Post: SuperNovaAO
  [Release] HideAndSeek Mod v1.0 BETA Tomsen1410 18 17,455 03-21-2013, 08:13
Last Post: Ryanrc
  [Release] Zombie Epidemic Mod Beta Lemon 92 62,759 03-07-2013, 12:30
Last Post: Lemon
  [Release] Black Tomato M 0.4.2 BETA // Ingame Admin Menu d0h! 5 11,983 01-01-2013, 22:23
Last Post: joey

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.