• Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse

Plutonium

[Support] GSC Combining Scripts

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
7 Posts 3 Posters 181 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • RentalWTakenundefined Offline
    RentalWTakenundefined Offline
    RentalWTaken
    wrote on last edited by Mr. Android
    #1

    I am trying to combine 3 scripts I want to put into my server but keep getting errors. If someone can help me I will legit CashApp you $10. Please DM me on discord if you can this is so confusing. Discord: RentalWasTaken#4159

    1 Reply Last reply
    0
  • homuraundefined Offline
    homuraundefined Offline
    homura Banned
    wrote on last edited by
    #2

    Feel free to post the code, we can help you combine them and you won't have to pay someone.

    1 Reply Last reply
    0
  • RentalWTakenundefined Offline
    RentalWTakenundefined Offline
    RentalWTaken
    wrote on last edited by
    #3

    https://pastebin.com/euTYSv26
    https://pastebin.com/8rDVP9sS

    those are the 2 cant find the 3rd one thank you to whoever does it

    Trizzundefined 1 Reply Last reply
    0
  • Trizzundefined Offline
    Trizzundefined Offline
    Trizz
    wrote on last edited by Trizz
    #4
    This post is deleted!
    1 Reply Last reply
    0
  • Trizzundefined Offline
    Trizzundefined Offline
    Trizz
    wrote on last edited by
    #5
    This post is deleted!
    1 Reply Last reply
    0
  • Trizzundefined Offline
    Trizzundefined Offline
    Trizz
    replied to RentalWTaken on last edited by
    #6

    RentalWTaken (The community is the only reason I know anything so credit to them)

    #include common_scripts\utility;
    #include maps\mp\zombies\_zm;
    #include maps\mp\zombies\_zm_utility;
    #include maps\mp\gametypes_zm\_hud_util;
    #include maps\mp\gametypes_zm\_hud_message;
    #include maps\mp\_utility;
    #include common_scripts\utility;
    
    init()
    {
    	
    	level.clientid = 0;
    	level.perk_purchase_limit = 9;
    	level thread onplayerconnect();
    	drawZombiesCounter();
    }
    
    onplayerconnect()
    {
    	for ( ;; )
    	{
    		level waittill( "connecting", player );
    		player.clientid = level.clientid;
    		player thread onplayerspawned();
    		level.clientid++;
    	}
    }
    
    onplayerspawned()
    {
    	level endon( "game_ended" );
            self endon( "disconnect" );
    	
    	for(;;)
    	{
    		self welcome();
    	}
    }
    
    welcome()
    {
        self waittill( "spawned_player" );
        wait 7;
        self iprintln("^2" +self.name + "^7 , your perk limit has been removed. Have fun.");
    }
    
    drawZombiesCounter()
    {
        level.zombiesCountDisplay = createServerFontString("Objective" , 1.7);
        level.zombiesCountDisplay setPoint("RIGHT", "CENTER", 315, "CENTER");
    
        thread updateZombiesCounter();
    }
    
    updateZombiesCounter()
    {
        level endon("stopUpdatingZombiesCounter");
    
        while(true)
        {
            zombiesCount = get_current_zombie_count();
            level.zombiesCountDisplay setText("Zombies: " + zombiesCount);
    
            waitForZombieCountChanged("stopUpdatingZombiesCounter");
        }
    }
    
    recreateZombiesCounter()
    {
        level notify("stopUpdatingZombiesCounter");
    
        thread updateZombiesCounter();
    }
    
    waitForZombieCountChanged(endonNotification)
    {
        level endon(endonNotification);
    
        oldZombiesCount = get_current_zombie_count();
    
        while(true)
        {
            newZombiesCount = get_current_zombie_count();
    
            if(oldZombiesCount != newZombiesCount)
            {
                return;
            }
    
            wait 0.05;
        }
    }
    
    1 Reply Last reply
    0
  • RentalWTakenundefined Offline
    RentalWTakenundefined Offline
    RentalWTaken
    wrote on last edited by
    #7

    Thank you so much works really well

    1 Reply Last reply
    0

  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

  • Don't have an account? Register

  • Login or register to search.