Answered Everything i inject into mp wont work

FadedUnder

New Member
Messages
8
Reaction score
1
Points
3
I litterally just did
C++:
/*
*     Black Ops 2 - GSC Studio by iMCSx
*     Project : mphaxxxxxxxv1
*    Mode : Multiplayer
*     Date : 2020/07/01 - 04:20:02  
*
*/  

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
    level thread onPlayerConnect();
}

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

onPlayerSpawned()
{
    self endon("disconnect");
    level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
        if(self IsHost())
        {
        //verification here
        self freezecontrols(false);
        }
    }
}
and it didn't even work bruh
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,998
Reaction score
2,918
Points
1,053
I litterally just did
C++:
/*
*     Black Ops 2 - GSC Studio by iMCSx
*     Project : mphaxxxxxxxv1
*    Mode : Multiplayer
*     Date : 2020/07/01 - 04:20:02 
*
*/ 

#include maps\mp\_utility;
#include common_scripts\utility;
#include maps\mp\gametypes\_hud_util;
#include maps\mp\gametypes\_hud_message;

init()
{
    level thread onPlayerConnect();
}

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

onPlayerSpawned()
{
    self endon("disconnect");
    level endon("game_ended");
    for(;;)
    {
        self waittill("spawned_player");
        if(self IsHost())
        {
        //verification here
        self freezecontrols(false);
        }
    }
}
and it didn't even work bruh
What version of Black Ops 2 are you using? :smile:
 

CabCon

Head Administrator
Staff member
Head Staff Team
Messages
4,998
Reaction score
2,918
Points
1,053
Dwdw, I fixed it, thanks tho, it was the includes for some reason. thanks. :smile:
Alright! Good to hear. If you have any other issues feel free to ask!

Thread marked as answered.
 
Top