Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void loops()
- {
- if (featureInvincibility) { PLAYER::SET_PLAYER_INVINCIBLE(PLAYER::PLAYER_ID(), TRUE); ENTITY::SET_ENTITY_INVINCIBLE(PLAYER::PLAYER_PED_ID(), TRUE); ENTITY::SET_ENTITY_ONLY_DAMAGED_BY_PLAYER(PLAYER::PLAYER_PED_ID(), TRUE); ENTITY::SET_ENTITY_CAN_BE_DAMAGED(PLAYER::PLAYER_PED_ID(), FALSE); }
- if (featureSuperJump) { GAMEPLAY::SET_SUPER_JUMP_THIS_FRAME(PLAYER::PLAYER_ID()); }
- if (featureSuperRun) { if (CONTROLS::IS_CONTROL_PRESSED(2, INPUT_SCRIPT_RDOWN)) { ENTITY::APPLY_FORCE_TO_ENTITY(PLAYER::PLAYER_PED_ID(), 1, 0.0f, 2.8f, 0.0, 0.0f, 0.0f, 0.0f, 1, 1, 1, 1, 0, 1); PED::SET_PED_CAN_RAGDOLL(PLAYER::PLAYER_PED_ID(), FALSE); PED::SET_PED_CAN_RAGDOLL_FROM_PLAYER_IMPACT(PLAYER::PLAYER_PED_ID(), FALSE); PED::SET_PED_CAN_BE_KNOCKED_OFF_VEHICLE(PLAYER::PLAYER_PED_ID(), 1); } }
- if (featureSuperPunch) { GAMEPLAY::SET_EXPLOSIVE_MELEE_THIS_FRAME(PLAYER::PLAYER_ID()); }
- if (featureSuperRunCheats) { PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(PLAYER::PLAYER_ID(), 1.49); }
- if (WhosTalkingLooptet) {
- float staticItemY = 0.18f;
- float TitlestaticItemY = 0.13f;
- float posY = TitlestaticItemY + 0.560;
- float posYY = TitlestaticItemY + 0.573;
- int i = 0;
- for (i = 0; i < 18; i++)
- {
- if (i == PLAYER::PLAYER_ID()) continue;
- int Handle = PLAYER::GET_PLAYER_PED(i);
- if (!ENTITY::DOES_ENTITY_EXIST(Handle)) continue;
- PrintToScreen("Talking Player", 0.7820f, TitlestaticItemY + 0.560, Rr, Rg, Rb, 110, 0.36f, 0.32f, 1, 8);
- if (NETWORK::NETWORK_IS_PLAYER_TALKING(i))
- {
- DrawSprite2("mpleaderboard", "leaderboard_audio_3", 0.7280f, (posYY += 0.019), 0.020f, 0.020f, 0.0f, 255, 255, 255, 255);
- PrintToScreen(PLAYER::GET_PLAYER_NAME(i), 0.7488f, (posY += 0.019), 255, 255, 255, 255, 0.33, 0.33, 0, 8);
- Vector3 Position = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
- Vector3 Pooos = ENTITY::GET_ENTITY_COORDS(Handle, 1);
- Vector3 Poos = ENTITY::GET_ENTITY_COORDS(Handle, 1);
- Vector3 theircoords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(i), 1);
- Vector3 mycoords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
- float xOffset; float yOffset;
- GRAPHICS::_WORLD3D_TO_SCREEN2D(Pooos.x, Pooos.y, Pooos.z + 1.3, &xOffset, &yOffset);
- char Nsame[80]; Hash curWeap; LPCSTR outWeapname;
- WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::GET_PLAYER_PED(i), &curWeap, 1);
- GET_WEAPON_NAME(curWeap, outWeapname);
- sprintf_s(Nsame, sizeof(Nsame), "%s[%dm]\n %s", PLAYER::GET_PLAYER_NAME(i), (int)GAMEPLAY::GET_DISTANCE_BETWEEN_COORDS(mycoords.x, mycoords.y, mycoords.z, Poos.x, Poos.y, Poos.z, 1), outWeapname);
- PrintToScreen(Nsame, xOffset, yOffset, Rr, Rg, Rb, 255, 0.40, 0.40, 0, 8);
- GRAPHICS::DRAW_LINE(mycoords.x, mycoords.y, mycoords.z, Poos.x, Poos.y, Poos.z, Rr, Rg, Rb, 255);
- GRAPHICS::DRAW_MARKER(20, Poos.x, Poos.y, Poos.z + 2.0, 0, 0, 0, 180.0f, 360.0f, 0, 1.5f, 1.5f, 1.5f, Rr, Rg, Rb, 80.0, true, false, 2, true, false, false, false);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement