Guest User

Untitled

a guest
Jan 22nd, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. else if(item_select == 19){
  2. if(DOES_CHAR_EXIST(players[index].ped)){
  3. int tick,nvid;
  4. if(IS_CHAR_IN_ANY_CAR(players[index].ped)){
  5. Vehicle pveh;
  6. GET_CAR_CHAR_IS_USING(players[index].ped,&pveh);
  7. GET_NETWORK_ID_FROM_VEHICLE(pveh,&nvid);
  8. REQUEST_CONTROL_OF_NETWORK_ID(nvid);
  9. while(!HAS_CONTROL_OF_NETWORK_ID(nvid)){
  10. tick++;
  11. if(tick >= 200){
  12. CLEAR_PRINTS();
  13. print("Error");
  14. return;
  15. }
  16. WAIT(0);
  17. }
  18. Object lights;
  19. CREATE_OBJECT(0x5DF29651, 0.0, 0.0, 0.0, &lights, 1);
  20. WAIT(1);
  21. ATTACH_OBJECT_TO_CAR(lights, pveh, 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
  22. SET_OBJECT_LIGHTS(lights, true);
  23. SET_OBJECT_VISIBLE(lights, true);
  24. SET_OBJECT_INVINCIBLE(lights, 1);
  25.  
  26. }
  27.  
  28. CLEAR_PRINTS();
  29. print("Attached Drum to Car");
  30. return;
  31. }
Add Comment
Please, Sign In to add comment