Post: How do I add options for players?
07-27-2015, 06:05 AM #1
Trefad
I defeated!
(adsbygoogle = window.adsbygoogle || []).push({}); Im trying to add options for players. Im using Africanized menu base. All the players menu has now is co host admin and those things. When I put a code on gsc studio on the players menu it dosen't show the option on my mod menu.
(adsbygoogle = window.adsbygoogle || []).push({});
07-27-2015, 02:22 PM #2
FRINZ
I’m too L33T
    self add_menu("PlayersMenu", "Main Menu", "Co-Host");
for (i = 0; i < 12; i++)
{ self add_menu("pOpt " + i, "PlayersMenu", "Co-Host"); }
}

updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["PlayersMenu"] > playersizefixed)
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}

self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);

self add_menu_alt("pOpt " + i, "PlayersMenu");
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
}
}



thats how it should Look to add a option to players
    self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
self add_option("pOpt " + i, "Your Text", ::Your Fuubction Text player);


If its not showing but u dont freeze on load up o get connection intupted its that u misspled sumthing like i just did o It has a space if u miss a space a letter
it wont show up in ur gsc mk sure its spaced out the same correct spelling and u should be good to go.

The following user thanked FRINZ for this useful post:

Trefad
07-28-2015, 04:43 PM #3
Trefad
I defeated!
Originally posted by FRlNZ View Post
    self add_menu("PlayersMenu", "Main Menu", "Co-Host");
for (i = 0; i < 12; i++)
{ self add_menu("pOpt " + i, "PlayersMenu", "Co-Host"); }
}

updatePlayersMenu()
{
self.menu.menucount["PlayersMenu"] = 0;
for (i = 0; i < 12; i++)
{
player = level.players[i];
playerName = getPlayerName(player);

playersizefixed = level.players.size - 1;
if(self.menu.curs["PlayersMenu"] > playersizefixed)
{
self.menu.scrollerpos["PlayersMenu"] = playersizefixed;
self.menu.curs["PlayersMenu"] = playersizefixed;
}

self add_option("PlayersMenu", "[" + verificationToColor(player.status) + "^7] " + playerName, ::submenu, "pOpt " + i, "[" + verificationToColor(player.status) + "^7] " + playerName);

self add_menu_alt("pOpt " + i, "PlayersMenu");
self add_option("pOpt " + i, "Give Co-Host", ::changeVerificationMenu, player, "Co-Host");
self add_option("pOpt " + i, "Give Admin", ::changeVerificationMenu, player, "Admin");
self add_option("pOpt " + i, "Give VIP", ::changeVerificationMenu, player, "VIP");
self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
}
}



thats how it should Look to add a option to players
    self add_option("pOpt " + i, "Verify", ::changeVerificationMenu, player, "Verified");
self add_option("pOpt " + i, "Unverify", ::changeVerificationMenu, player, "Unverified");
self add_option("pOpt " + i, "Your Text", ::Your Fuubction Text player);


If its not showing but u dont freeze on load up o get connection intupted its that u misspled sumthing like i just did o It has a space if u miss a space a letter
it wont show up in ur gsc mk sure its spaced out the same correct spelling and u should be good to go.


Thanks Smile
07-28-2015, 04:44 PM #4
Smile thank's

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo