Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Support & Discussion
  3. why does this script not work

why does this script not work

Scheduled Pinned Locked Moved BO2 Modding Support & Discussion
1 Posts 1 Posters 88 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ideadhottyundefined Offline
    ideadhottyundefined Offline
    ideadhotty
    wrote on last edited by
    #1

    i dont understand why its not working and is crashing or not letting me get in to the game

    #include maps\mp\_utility;
    #include common_scripts\utility;
    #include maps\mp\zombies\_zm;
    #include maps\mp\zombies\_zm_utility;
    
    init()
    {
    	level.clientid = 0;
    	level.perk_purchase_limit = 9;
    	level thread onplayerconnect();
    }
    
    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" );
        self maps/mp/zombies/_zm_perks::give_perk( "specialty_armorvest" );
        wait 7;
        self iprintln("^2" +self.name + "^7 , your perk limit has been removed");
    }
    
    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
    • Donate