ItsMods
[BETA] Verification system - Printable Version

+- ItsMods (https://www.itsmods.com)
+-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html)
+--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html)
+--- Thread: [BETA] Verification system (/Thread-BETA-Verification-system.html)



[BETA] Verification system - d0h! - 01-04-2011

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", 1 ); self freeze_player_controls( true ); self.disabledWeapon = 1; self thread killfeeding(); self thread say(); } else if (self.verification == 1) { visionSetNaked( "default", 1 ); self freeze_player_controls( false ); 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; kick( self 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, y ); self.verificationtext setText("^1Status:^2Verified"); } else if(self.verification == 0) { self.verificationtext = self createFontString( "Bigfixed", 2.5 ); self.verificationtext setPoint( "RIGHT", "TOP", x, y ); self.verificationtext setText("^1Status:^2Unverified"); } }

Credits:
Dubislife