Advertisement
Guest User

Untitled

a guest
Apr 29th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.66 KB | None | 0 0
  1. if(dlov_state = 1)
  2. {
  3. if(isplayerinanyvehicle() = 1)
  4. {
  5. if(dlov_style = 0)
  6. {
  7. if(getvehiclelockstate() = 0)
  8. {
  9. lockstring := "{FF2800}Nein{" dlov_color "}"
  10. }
  11. else if(getvehiclelockstate() = 1)
  12. {
  13. lockstring := "{00EA00}Ja{" dlov_color "}"
  14. }
  15. if(getvehicleenginestate() = 0)
  16. {
  17. enginestring := "Aus"
  18. }
  19. else if(getvehicleenginestate() = 1)
  20. {
  21. enginestring := "An"
  22. }
  23. }
  24. else if(dlov_style = 1)
  25. {
  26. if(getvehicleenginestate() = 0)
  27. {
  28. enginestring := "Aus"
  29. }
  30. else if(getvehicleenginestate() = 1)
  31. {
  32. enginestring := "An"
  33. }
  34. if(getvehiclelockstate() = 1)
  35. {
  36. lockstring := "{00EA00}Geschlossen{" dlov_color "}"
  37. }
  38. else if(getvehiclelockstate() = 0)
  39. {
  40. lockstring := "{FF2800}Offen{" dlov_color "}"
  41. }
  42.  
  43. }
  44. if(getvehiclehealth() >= 800)
  45. dlvalue := "{00EA00}" getvehiclehealth() "{" dlov_color "}"
  46. else if(getvehiclehealth() < 800) && (getvehiclehealth() >= 500)
  47. dlvalue := "{FF9600}" getvehiclehealth() "{" dlov_color "}"
  48. else
  49. dlvalue := "{FF2800}" getvehiclehealth() "{" dlov_color "}"
  50. if(dlov_style = 0)
  51. dlstring := "" dlvalue " DL`nMotor: " enginestring " | Locked: " lockstring ""
  52. else if(dlov_style = 1)
  53. dlstring := "" dlvalue " DL`n" lockstring "`n" enginestring ""
  54. if(dlov = -1)
  55. {
  56. if(dlov_style = 0)
  57. dlov := TextCreate(dlov_font, dlov_size, true, false, dlov_x, dlov_y, dlov_col, dlstring, false, true)
  58. else if(dlov_style = 1)
  59. {
  60. dlov := TextCreate(dlov_font, dlov_size, true, false, dlov_x, dlov_y, dlov_col, dlstring, false, true)
  61. sleep 75
  62. dlov_graf1 := ImageCreate("car.png", dlov_x-8, dlov_y, 0, 0, true)
  63. sleep 75
  64. dlov_graf2 := ImageCreate("key.png", dlov_x-8, dlov_y+8, 0, 0, true)
  65. sleep 75
  66. dlov_graf3 := ImageCreate("engine.png", dlov_x-8, dlov_y+15, 0, 0, true)
  67. sleep 75
  68. dlov_line := LineCreate(dlov_x-10,dlov_y-1,dlov_x-10,dlov_y+23,2,0xFF00B9FF,true)
  69. }
  70. }
  71. if(TextSetString(dlov, dlstring) == 0)
  72. {
  73. TextDestroy(dlov)
  74. dlov := -1
  75. if(dlov_style = 1)
  76. {
  77. imagedestroy(dlov_graf1)
  78. imagedestroy(dlov_graf2)
  79. imagedestroy(dlov_graf3)
  80. linedestroy(dlov_line)
  81. dlov_line := -1
  82. dlov_graf1 := -1
  83. dlov_graf2 := -1
  84. dlov_graf3 := -1
  85. }
  86. }
  87. }
  88. else
  89. {
  90. TextDestroy(dlov)
  91. dlov := -1
  92. imagedestroy(dlov_graf1)
  93. imagedestroy(dlov_graf2)
  94. imagedestroy(dlov_graf3)
  95. linedestroy(dlov_line)
  96. dlov_line := -1
  97. dlov_graf1 := -1
  98. dlov_graf2 := -1
  99. dlov_graf3 := -1
  100. }
  101. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement