Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (NETWORK::NETWORK_IS_SESSION_STARTED())
- {
- for (int z = 0; z < 32; ++z)
- {
- if (NETWORK::NETWORK_IS_PLAYER_CONNECTED(z))
- {
- if (ENTITY::DOES_ENTITY_EXIST(PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(z)))
- {
- int index = 1385296; /////STANDART GLOBAL + 2
- char* headShot;
- const char* playerTag;
- for (int x = 0; x <= 150; x += 5)
- {
- int playerId = globalHandle(index).At(x).As<int>();
- if (playerId == z) {
- int logo = globalHandle(index).At(x).At(1).As<int>();
- headShot = PED::GET_PEDHEADSHOT_TXD_STRING(logo);
- if (PLAYER::GET_PLAYER_PED_SCRIPT_INDEX(z) == PLAYER::PLAYER_PED_ID())
- {
- char* PlayerName = PLAYER::GET_PLAYER_NAME(z);
- char Buffer[255];
- sprintf(Buffer, "%s ~HUD_COLOUR_GOLD~[~HUD_COLOUR_GOLD~Me~HUD_COLOUR_GOLD~]", PlayerName);
- PlayerName = Buffer;
- Menu::MenuPlayer(PlayerName, headShot, playermenu, z) ? selectedPlayer = z : NULL;
- }
- else if (PLAYER::GET_PLAYER_INVINCIBLE(z))
- {
- char* PlayerName = PLAYER::GET_PLAYER_NAME(z);
- char Buffer[255];
- sprintf(Buffer, "%s ~r~[God]", PlayerName);
- PlayerName = Buffer;
- Menu::MenuPlayer(PlayerName, headShot, playermenu, z) ? selectedPlayer = z : NULL;
- }
- else if (PLAYER::GET_PLAYER_WANTED_LEVEL(z))
- {
- char* PlayerName = PLAYER::GET_PLAYER_NAME(z);
- char Buffer[255];
- sprintf(Buffer, "%s ~r~[Wanted]", PlayerName);
- PlayerName = Buffer;
- Menu::MenuPlayer(PlayerName, headShot, playermenu, z) ? selectedPlayer = z : NULL;
- }
- else {
- playerTag = PLAYER::GET_PLAYER_NAME(z);
- }
- Menu::MenuPlayer(playerTag, headShot, playermenu, z) ? selectedPlayer = z : NULL;
- }
- }
- }
- }
- }
- }
- else {
- for (int z = 0; z < 32; ++z) {
- Menu::MenuPlayer(PLAYER::GET_PLAYER_NAME(z), "CHAR_MULTIPLAYER", playermenu, z) ? selectedPlayer = z : NULL;
- break;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement