Advertisement
Guest User

fucking problem

a guest
Feb 16th, 2019
164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.94 KB | None | 0 0
  1. void loops()
  2. {
  3. 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); }
  4. if (featureSuperJump) { GAMEPLAY::SET_SUPER_JUMP_THIS_FRAME(PLAYER::PLAYER_ID()); }
  5. 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); } }
  6. if (featureSuperPunch) { GAMEPLAY::SET_EXPLOSIVE_MELEE_THIS_FRAME(PLAYER::PLAYER_ID()); }
  7. if (featureSuperRunCheats) { PLAYER::SET_RUN_SPRINT_MULTIPLIER_FOR_PLAYER(PLAYER::PLAYER_ID(), 1.49); }
  8.  
  9.  
  10. if (WhosTalkingLooptet) {
  11.  
  12. float staticItemY = 0.18f;
  13. float TitlestaticItemY = 0.13f;
  14.  
  15. float posY = TitlestaticItemY + 0.560;
  16. float posYY = TitlestaticItemY + 0.573;
  17.  
  18. int i = 0;
  19. for (i = 0; i < 18; i++)
  20. {
  21. if (i == PLAYER::PLAYER_ID()) continue;
  22. int Handle = PLAYER::GET_PLAYER_PED(i);
  23. if (!ENTITY::DOES_ENTITY_EXIST(Handle)) continue;
  24.  
  25. PrintToScreen("Talking Player", 0.7820f, TitlestaticItemY + 0.560, Rr, Rg, Rb, 110, 0.36f, 0.32f, 1, 8);
  26. if (NETWORK::NETWORK_IS_PLAYER_TALKING(i))
  27. {
  28. DrawSprite2("mpleaderboard", "leaderboard_audio_3", 0.7280f, (posYY += 0.019), 0.020f, 0.020f, 0.0f, 255, 255, 255, 255);
  29. PrintToScreen(PLAYER::GET_PLAYER_NAME(i), 0.7488f, (posY += 0.019), 255, 255, 255, 255, 0.33, 0.33, 0, 8);
  30.  
  31. Vector3 Position = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
  32. Vector3 Pooos = ENTITY::GET_ENTITY_COORDS(Handle, 1);
  33. Vector3 Poos = ENTITY::GET_ENTITY_COORDS(Handle, 1);
  34.  
  35. Vector3 theircoords = ENTITY::GET_ENTITY_COORDS(PLAYER::GET_PLAYER_PED(i), 1);
  36. Vector3 mycoords = ENTITY::GET_ENTITY_COORDS(PLAYER::PLAYER_PED_ID(), 1);
  37. float xOffset; float yOffset;
  38. GRAPHICS::_WORLD3D_TO_SCREEN2D(Pooos.x, Pooos.y, Pooos.z + 1.3, &xOffset, &yOffset);
  39. char Nsame[80]; Hash curWeap; LPCSTR outWeapname;
  40. WEAPON::GET_CURRENT_PED_WEAPON(PLAYER::GET_PLAYER_PED(i), &curWeap, 1);
  41. GET_WEAPON_NAME(curWeap, outWeapname);
  42. 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);
  43. PrintToScreen(Nsame, xOffset, yOffset, Rr, Rg, Rb, 255, 0.40, 0.40, 0, 8);
  44. GRAPHICS::DRAW_LINE(mycoords.x, mycoords.y, mycoords.z, Poos.x, Poos.y, Poos.z, Rr, Rg, Rb, 255);
  45. 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);
  46.  
  47. }
  48. }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement