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 1.3k Views 1 Watching
  • 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.
  • 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

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

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