Code:
Content Unlocked
#pragma region BLACK_LIST_CHOOSING
case BLACK_LIST_CHOOSING:
SubTitle("BLACK LIST", 1);
for (int i = 0; i < 18; i++)
{
if (!NETWORK::NETWORK_IS_PLAYER_CONNECTED(i))
{
AddOption(PLAYER::GET_PLAYER_NAME(i));
}
else
{
AddOption(PLAYER::GET_PLAYER_NAME(i));
}
}
if (optionPress && PLAYER::IS_PLAYER_PLAYING(currentOption - 1))
{
selectedPlayer = currentOption - 1;
char* Name = PLAYER::GET_PLAYER_NAME(selectedPlayer);
SavePlayerNameForBlackList(selectedPlayer);
ShowMessageWithName(Name, "Saved In BlackList.");
}
break;
#pragma endregion
#pragma region BLACK_LIST
case BLACK_LIST:
SubTitle("BLACK LIST", 1);
AddBlackListName(SavedName, "Click on Client to View Options for Them");
AddOption("Clear BlackList", "Clears the Names From the BlackList");
switch (getOption())
{
case 2: SavedName = "Empty"; break;
}
break;
#pragma endregion
#pragma region BLACK_LIST_OPTIONS
case BLACK_LIST_OPTIONS:
SubTitle(PLAYER::GET_PLAYER_NAME(selectedPlayer), 1);
AddOption("Kick the Bitch", "Kicks BlackListed Client from Your Lobby");
AddOption("Crash v1", "Spawns 7 Jumbo Jets on Client ~r~[CRASH OPTION]");
AddOption("Crash v2", "Ped Crash ~y~[TESTING]");
switch (getOption())
{
case 1: NETWORK::NETWORK_SESSION_KICK_PLAYER(selectedPlayer); Off_Host_Kick(); break;
case 2: JetsCrash(); break;
case 3: FreezeModelTester(selectedPlayer); break;
}
break;
#pragma endregion
char* SavedName = "Empty";
void SavePlayerNameForBlackList(Player player)
{
char* Client = PLAYER::GET_PLAYER_NAME(player);
SavedName = Client;
}
void AddBlackListName(char *option, char *info = NULL)
{
SavedName = option;
AddOption(option);
if (currentOption == optionCount)
{
xInstruction = true;
if (optionPress && (NETWORK::NETWORK_IS_PLAYER_CONNECTED(selectedPlayer)))
{
ChangeSubmenu(BLACK_LIST_OPTIONS);
}
}
}
void ShowMessageWithName(char* text, char* name) {
char* notificationBuf = new char[100];
sprintf(notificationBuf, "~g~%s ~o~%s", text, name);
UI::_0x574EE85C("STRING");
UI::_ADD_TEXT_COMPONENT_STRING(notificationBuf);
UI::_DRAW_NOTIFICATION(FALSE, FALSE);
}
You can Save one client at a time with this. make your own jets crash... the freeezemodel tester is from AFC [doesn't work]...