I've been working on a mod for a few days and it's almost complete. I have a few problems. I will describe them below:
OK. What I need is a thread that will detect and player tags and then peform some stuff. I have no idea where to start with that.
I also need to have a timer that runs at the same time as everyone else. I looked at a few Zombie mods and they seem to use level thread blahtimer(); at the end of the init() thread after level thread OnPlayerConnect():
[php]
init()
//blah blah
//blah blah
//end of the init() thread:
level.rankTable[rankId][1] = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
level.rankTable[rankId][2] = tableLookup( "mp/ranktable.csv", 0, rankId, 2 );
level.rankTable[rankId][3] = tableLookup( "mp/ranktable.csv", 0, rankId, 3 );
level.rankTable[rankId][7] = tableLookup( "mp/ranktable.csv", 0, rankId, 7 );
precacheString( tableLookupIString( "mp/ranktable.csv", 0, rankId, 16 ) );
rankId++;
rankName = tableLookup( "mp/ranktable.csv", 0, rankId, 1 );
}
maps\mp\gametypes\_missions::buildChallegeInfo();
level thread patientZeroWaiter();
level thread onPlayerConnect();
level thread blahtimer(); // <------
}[/php]
However, when I try that with mine, the timer doesn't appear but it does when I try under OnPlayerSpawned()!
This is what my timer thread looks like:
[php]playertimer()
{
level.counter = 60;
while(level.counter > 0)
{
level.TimerText setText("^1Player will be chosen in: " + level.counter);
wait 1;
level.counter--;
}
level.TimerText setText("");
level thread doPickPlayer();
}[/php]
One last question (shouldn't be TOO hard). How can you make Free-For-All have only one life?
scr_dm_numlives doesn't work because you respawn after you die.
EDIT - Just realised I posted in the wrong section Please move to Help section!
Last edited by master131; 08-24-2010 at 10:29 PM.
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]