Post: [BO2] How do i add a host only menu to Sharks Zombieland in GSC Studio
12-18-2016, 04:03 PM #1
CGQuinn
Bounty hunter
(adsbygoogle = window.adsbygoogle || []).push({}); so *i need some help... title says it all..... i need a menu for me (host) *only Smile

i made a new gsc in the project... (its sharks zombieland) and i need help with the coding
(adsbygoogle = window.adsbygoogle || []).push({});

The following user groaned CGQuinn for this awful post:

Right
12-18-2016, 07:06 PM #2
CGQuinn
Bounty hunter
ive tried making a new gsc in gsc studio with the bossam v6 source code and it has been correct syntax but wont inject :/
12-18-2016, 07:32 PM #3
anthonything
Space Ninja
Originally posted by CGQuinn View Post
so *i need some help... title says it all..... i need a menu for me (host) *only Smile

i made a new gsc in the project... (its sharks zombieland) and i need help with the coding


Just dont verify the other clients.

The following user groaned anthonything for this awful post:

DF_AUS
12-18-2016, 07:41 PM #4
CGQuinn
Bounty hunter
Originally posted by anthonything View Post
Just dont verify the other clients.


well.. how would i put the menu in the project? with gsc studio bc i tried to make a new gsc and put the bossam v6 code in it and its correct syntax but it wont inject the project with that gsc in it for some reason :/

because im trying to add a host menu to zombieland
12-19-2016, 11:42 PM #5
Originally posted by CGQuinn View Post
so *i need some help... title says it all..... i need a menu for me (host) *only Smile

i made a new gsc in the project... (its sharks zombieland) and i need help with the coding

When makeing your menu for your players, just in a
    
if (self isHost())
{
}

in to your menu function. All menus that are added there will only appear to a user if that user is the host.
Example:
    
self add_menu("Main Menu Human", undefined, "The Shop (Status: ^2Human^7)", "Unverified");
self add_option("Main Menu Human", "User Menu", ::submenu, "Menu", "Menu"); //Can be used by every Human
if (self isHost())
{
self add_option("Main Menu Human", "Host Menu", ::submenu, "Host", "Host"); //Can only seen if the user is the host.
}

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo