Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include maps\mp\gametypes\_hud_util;
- #include maps\mp\_utility;
- #include common_scripts\utility;
- LoadMessage()
- {
- level thread onPlayerConnect();
- }
- onPlayerConnect()
- {
- for(;;)
- {
- level waittill( "connected", player );
- player thread onPlayerSpawned();
- }
- }
- onPlayerSpawned()
- {
- self endon("disconnect");
- for(;;)
- {
- self waittill("spawned_player");
- self thread doText();
- self thread hinttext();
- self thread HUDtext();
- if(self isHost()) self thread doMessage();
- }
- }
- doMessage()
- {
- self endon("disconnect");
- for(;;) {
- wait 70;
- self sayAll("^2N'oubliez pas de rejoindre le groupe FSMF");
- wait 100;
- self sayAll("^2Strats mod by XxNoVaxX. ^1Romuald c'est trop un Dieu. PGM PGM PGM.");
- }
- }
- doText()
- {
- self endon ("disconnect");
- self endon ("death");
- zycieText = self createFontString("default", 1.6);
- zycieText setPoint("BOTTOM", "TOP", -1, 35);
- zycieText.glowAlpha = 1;
- zycieText.hideWhenInMenu = true;
- zycieText.alpha = 0;
- zycieText fadeOverTime( 0.5 );
- zycieText.alpha = 1;
- zycieText.glowColor = (1.0, 0.0, 0.0);
- zycieText thread rozwalPoSmierci(self);
- zycieText3 = self createFontString("default", 0.95);
- zycieText3 setParent(level.uiParent);
- zycieText3 setPoint("CENTER", "LEFT", 110, -120);
- zycieText3 thread rozwalPoSmierci(self);
- if(self.team == "axis") zycieText3 setText( "^1Strats mod by XxNoVaxX");
- else if(self.team == "allies") { zycieText3 setText( "^1Strats mod by XxNoVaxX"); zycieText3 setPoint("CENTER", "LEFT", 85, -120); }
- zycieText2 = self createFontString("default", 1.6);
- zycieText2 setParent(level.uiParent);
- zycieText2 setPoint("TOPRIGHT", "TOPRIGHT", -40, 25);
- zycieText2.glowAlpha = 1;
- zycieText2.hideWhenInMenu = true;
- zycieText2.alpha = 0;
- zycieText2 fadeOverTime( 0.5 );
- zycieText2.alpha = 1;
- zycieText2.glowColor = (0.0, 0.8, 0.0);
- zycieText2 thread rozwalPoSmierci(self);
- }
- rozwalPoSmierci(player)
- {
- self endon("rozwalone");
- player waittill ( "death" );
- self destroy();
- }
- HUDtext()
- {
- self.HintText = self createFontString( "objective", 1.25 );
- self.HintText setPoint( "CENTER", "CENTER", 0, 50 );
- self thread destroyOnDeath();
- }
- destroyOnDeath()
- {
- self waittill ( "death" );
- self.HintText destroy();
- }
- hinttext()
- {
- self endon("disconnect");
- self endon("death");
- while(1)
- {
- self.HintText setText(self.hint);
- self.hint = "";
- wait .5;
- }
- }
Add Comment
Please, Sign In to add comment