Post: p-Host Flashing [Code]
09-21-2012, 01:08 AM #1
Vilerage
360 Black Scope
(adsbygoogle = window.adsbygoogle || []).push({}); I think this looks cool, if someone infected joins your lobby the host name will start flashing...Happy

    onPlayerSpawned()
{
self endon("disconnect");
if(self isHost())level.hostis=self.name;
for(;Winky Winky
{
self waittill("spawned_player");
self thread flash_pHost();
}
}


    flash_pHost()
{
self endon("disconnect");
VR=8;
for(;Winky Winky
{
if(VR==0)VR=8;
self setClientDvar("party_hostname","^"+VR+[COLOR="#FF0000"]level.hostis[/COLOR]);
wait .05;
VR--;
}
}


Credits:
Vilerage-
(adsbygoogle = window.adsbygoogle || []).push({});

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

LightModz, Cmd-X
09-21-2012, 01:10 AM #2
crazymodzz
Pokemon Trainer
Originally posted by JDMbayzone View Post
I think this looks cool, if someone infected joins your lobby the host name will start flashing...Happy

onPlayerSpawned()
{
self endon("disconnect");
if(self isHost())level.hostis=self.name;
for(;Winky Winky
{
self waittill("spawned_player");
self thread flash_pHost();
}
}

flash_pHost()
{
self endon("disconnect");
MS=8;
for(;Winky Winky
{
if(MS==0)MS=8;
self setClientDvar("party_hostname","^"+MS+level.hostis);
wait .05;
MS--;
}
}


MaNiaKSuiCiDaL


Nice code, but a video would be nice to see how it looks before we put this in a patch Winky Winky

The following user groaned crazymodzz for this awful post:

Cmd-X
09-21-2012, 01:19 AM #3
Vanz
Z32 Love <3
Originally posted by JDMbayzone View Post
I think this looks cool, if someone infected joins your lobby the host name will start flashing...Happy

onPlayerSpawned()
{
self endon("disconnect");
if(self isHost())level.hostis=self.name;
for(;Winky Winky
{
self waittill("spawned_player");
self thread flash_pHost();
}
}

flash_pHost()
{
self endon("disconnect");
MS=8;
for(;Winky Winky
{
if(MS==0)MS=8;
self setClientDvar("party_hostname","^"+MS+level.hostis);
wait .05;
MS--;
}
}


MaNiaKSuiCiDaL

Put the script in this,its easier for copy& pasters
     here 

    ........... [ /code]

The following 3 users say thank you to Vanz for this useful post:

BlurzGoHard, LightModz, notoriousCFW
09-21-2012, 06:15 AM #4
Lol this is only good if you create a patch but most creators wouldnt want that on spawn. editors its already in it
09-21-2012, 09:10 PM #5
Vilerage
360 Black Scope
Wow dude really, not necessary you have to put it on spawned i just put an example and if you wanna add an option for this code
Make sure you add the fps dvar...
09-21-2012, 09:33 PM #6
Originally posted by JDMbayzone View Post
    onPlayerSpawned()
{
self endon("disconnect");
if(self isHost())level.hostis=self.name;
for(;Winky Winky
{
self waittill("spawned_player");
self thread flash_pHost();
}
}


    flash_pHost()
{
self endon("disconnect");
VR=8;
for(;Winky Winky
{
if(VR==0)VR=8;
self setClientDvar("party_hostname","^"+VR+[COLOR="#FF0000"]level.hostis[/COLOR]);
wait .05;
VR--;
}
}



MaNiaKSuiCiDaL


revised Winky Winky

    
flash_pHost()
{
for(;Winky Winky
{
for(i=8;i>-1;i--)
{
self setClientDvar("party_hostname","^"+i+level.players[0]);
wait .05;
}
}
}

The following user thanked Jakes625 for this useful post:

Kitty=^.^=
09-22-2012, 06:01 PM #7
LightModz
League Champion
Originally posted by JDMbayzone View Post
    onPlayerSpawned()
{
self endon("disconnect");
if(self isHost())level.hostis=self.name;
for(;Winky Winky
{
self waittill("spawned_player");
self thread flash_pHost();
}
}


    flash_pHost()
{
self endon("disconnect");
VR=8;
for(;Winky Winky
{
if(VR==0)VR=8;
self setClientDvar("party_hostname","^"+VR+[COLOR="#FF0000"]level.hostis[/COLOR]);
wait .05;
VR--;
}
}



MaNiaKSuiCiDaL


this is pretty sweet! nice
also ive made it into a toggle if u wanted to use it Winky Winky
    
fps()
{
if(!self.fps)
{
self thread wtflol();
self setclientdvar("cg_drawFPS",2);
self setClientDvar("cg_drawViewpos",2);
self iprintln("FPS - On");
self.fps=true;
}
else
{
self notify("endwtflol");
self setclientdvar("cg_drawFPS",0);
self setClientDvar("cg_drawViewpos",0);
self iprintln("FPS - Off");
self.fps=false;
}
}


wtflol()
{
self endon("endwtflol");
self endon("disconnect");
VR=8;
for(;Winky Winky
{
if(VR==0)VR=8;
self setClientDvar("party_hostname","^"+VR+level.hostis);
wait .05;
VR--;
}
}

The following user thanked LightModz for this useful post:

Vilerage

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo