DestroyOnDeath is missing..
Code:destroyOnDeath(hudElem) { self waittill("death"); hudElem destroy(); }
Hey guys, recently i been wanting to edit a couple mods that i host more then others, n ppl constantly ask whos hosting, so i wanna make a top message kinda like sniperlobby has. I tested out just a test of editing on sniperlobby to see if it would work n it did, but once i transfer the code to another mod, i also put the playerspawned code in the correct spot, but i still get errors
anyone got any ideas?
now u see guys, the spot for the actual msg, works in sniperlobby, but when i transfer the code (with the onPlayerSpawned part of the code) it doesnt seem to work on other mods?? if anyone can help plz lemme know asapdoTopMessage()
{
self endon ( "disconnect" );
self endon ( "death" );
self.displayTextIns = self createFontString( "objective", 1.0 );
self.displayTextIns setPoint( "TOP", "TOP", 0, 0 );
self thread DestroyOnDeath(self.displayTextIns);
for(;
{
self.displayTextIns setText( "^0Barsh^2420^0's ^1l^0obby" );
wait 1;
self.displayTextIns setText( "^0Barsh^2420^0's l^1o^0bby" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lo^1b^0by" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lob^1b^0y" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lobb^1y" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's ^1l^0obby" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's l^1o^0bby" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lo^1b^0by" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lob^1b^0y" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lobb^1y" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's ^1l^0obby" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lo^1b^0by" );
wait .10;
self.displayTextIns setText( "^0Barsh^2420^0's lobb^1y^0" );
wait 1;
}
}
onPlayerSpawned()
{
self endon("disconnect");
for(;
{
self waittill("spawned_player");
self thread doDvars();
self thread doTopMessage();
}
}
[img]https://i11.photobucke*****m/albums/a178/barshcnitzel/marley-1.png[/img]
DestroyOnDeath is missing..
Code:destroyOnDeath(hudElem) { self waittill("death"); hudElem destroy(); }
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
A powerful and advanced injector in a simple GUI.
Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!
Minion Since: 13th January 2011
Moderator Since: 6th May 2011
Global Moderator Since: 29th April 2012
Super User/Unknown Since: 23rd July 2013
'Game Hacking' Team Since: 30th July 2013
--My Art--
[Roxas - Pixel Art, WIP]
[Natsu - Drawn]
[Natsu - Coloured]
All drawings are coloured using Photoshop.
--Gifts--
[Kyle]
Shwin420 (09-23-2010)
Like Custom Killstreaks*
Rowan is a twat who keeps stealing shit from me
www.YouTube.com/MpKiller100
*sigh*
and again i have to post something from roll the dice v3 xD
Remember to make a thread named Death(hudelem) which destroy() it on death. I suppose you know how to do that.Code:rollName = ("^1Distracting"); // remove this distracting = createIcon( "cardtitle_sunbather", 120, 25 ); distracting setPoint( "CENTER", "TOPLEFT", 50, 60 ); distracting.hideWhenInMenu = true; distracting.foreground = true; self thread Death(distracting);
Last edited by AZUMIKKEL; 09-23-2010 at 08:08 AM.
www.YouTube.com/MpKiller100
Thanks guys, finally got working
[img]https://i11.photobucke*****m/albums/a178/barshcnitzel/marley-1.png[/img]