Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Script Problems
#1
So I'm having some issues with getting the threads to run for all players in the game instead of just the host.

In FFA, threads only run for the host.

In SnD, threads run for the host on the first round only. On the second, third, fourth, etc rounds, threads only run for other people in the lobby and not the host.

Currently this is the start of my code:
Code:
init()
{
        thread onPlayerConnect();
}

onPlayerConnect()
{
        level waittill("connected", player);
        player thread onPlayerSpawned();
}

onPlayerSpawned()
{
        self waittill("spawned_player");
        self iPrintlnBold( "Mod Loaded" );
        self thread doAimbot;
}

Obviously I'm not gonna post my aimbot code.

P.S. There is nothing wrong with the code. I've tested it multiple times and it works fine, so this isn't the problem.
Reply

#2
Code:
init()
{
        level thread onPlayerConnect();
}

onPlayerConnect()
{
    for(;;)
    {
        level waittill("connected", player);
        player thread onPlayerSpawned();
    }
}

onPlayerSpawned()
{
    for(;;)
    {
        self waittill("spawned_player");
        self iPrintlnBold( "Mod Loaded" );
        self thread doAimbot();
    }
}
Reply

#3
You're actually the best. Thank you Smile
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Script problem mazerka 3 3,836 09-15-2014, 01:52
Last Post: DidUknowiPwn
  Script help swegspoder69 2 3,172 09-14-2014, 07:48
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.