Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Discord
Collapse
Brand Logo

Ezz Forum

  1. Home
  2. Announcements
  3. FAQ
  4. Boiii Server: GSC Coding

Boiii Server: GSC Coding

Scheduled Pinned Locked Moved FAQ
boiiigscdevguideboiii-server
1 Posts 1 Posters 759 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.
  • SkwllS Offline
    SkwllS Offline
    Skwll Owner
    wrote on last edited by Skwll
    #1

    One way of hosting a custom GSC script on your dedicated server:

    • File path: UnrankedServer\boiii\scripts\zm\gametypes\_clientids.gsc
    • Compiler: https://github.com/shiversoftdev/t7-compiler or https://github.com/xensik/gsc-tool
    • Empty default _clientids.gsc:
    #include scripts\shared\system_shared;
    #include scripts\shared\callbacks_shared;
    #include scripts\shared\hud_util_shared;
    #include scripts\shared\flag_shared;
    #include scripts\shared\ai\zombie_utility;
    #include scripts\zm\_zm_utility;
    
    #namespace ezz_empty;
    
    
    autoexec __init__sytem__()
    {
        system::register("ezz_empty", ::__init__, undefined, undefined);
    }
    	
    __init__()
    {
    	callback::on_start_gametype( ::init );
    	callback::on_connect( ::on_player_connect );
    }
    
    init()
    {
        level.clientid = 0;
    }
    
    on_player_connect()
    {
        self.clientid = matchrecordnewplayer(self);
    	if(!isdefined(self.clientid) || self.clientid == -1)
    	{
    		self.clientid = level.clientid;
    		level.clientid++;
    	}
    }
    
    1 Reply Last reply
    👍
    0

    • Login

    • Don't have an account? Register

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