XADRENALINEIX

Motions97's Blue Neons

May 15th, 2013
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.43 KB | None | 0 0
  1. if(DOES_CHAR_EXIST(players[index].ped)){
  2. if(IS_CHAR_IN_ANY_CAR(players[index].ped)){
  3. int pveh,nvid,tick;
  4. GET_CAR_CHAR_IS_USING(players[index].ped,&pveh);
  5. GET_NETWORK_ID_FROM_VEHICLE(pveh,&nvid);
  6. REQUEST_CONTROL_OF_NETWORK_ID(nvid);
  7. while(!HAS_CONTROL_OF_NETWORK_ID(nvid)){
  8. tick++;
  9. REQUEST_CONTROL_OF_NETWORK_ID(nvid);
  10. if(tick >= 200){
  11. CLEAR_PRINTS();
  12. print("Error");
  13. return;
  14. }
  15. WAIT(0);
  16. }
  17. Object lights;
  18. CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
  19. WAIT(1);
  20. ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.4,-0.2,-190,0,160.2);
  21. SET_OBJECT_LIGHTS(lights, true);
  22. SET_OBJECT_VISIBLE(lights, true);
  23. SET_OBJECT_INVINCIBLE(lights, 1);
  24. CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
  25. WAIT(1);
  26. ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.2,-0.2,-190,0,160.2);
  27. SET_OBJECT_LIGHTS(lights, true);
  28. SET_OBJECT_VISIBLE(lights, true);
  29. SET_OBJECT_INVINCIBLE(lights, 1);
  30. CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
  31. WAIT(1);
  32. ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.4,-0.2,-190,0,160.2);
  33. SET_OBJECT_LIGHTS(lights, true);
  34. SET_OBJECT_VISIBLE(lights, true);
  35. SET_OBJECT_INVINCIBLE(lights, 1);
  36. CREATE_OBJECT(0xD20167BE, 0.0f, 0.0f, 0.0f, &lights, 1);
  37. WAIT(1);
  38. ATTACH_OBJECT_TO_CAR(lights,pveh,0.0f,0.2,0.2,-0.2,-190,0,160.2);
  39. SET_OBJECT_VISIBLE(lights, true);
  40. SET_OBJECT_INVINCIBLE(lights, 1);
  41. SET_OBJECT_VISIBLE(lights, true);
  42. CLEAR_PRINTS();
  43. print("Blue Neons have been Attached To Players Car");
  44. }
  45. }
  46. return;
  47. }
  48. }
Advertisement
Add Comment
Please, Sign In to add comment