Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(dlov_state = 1)
- {
- if(isplayerinanyvehicle() = 1)
- {
- if(dlov_style = 0)
- {
- if(getvehiclelockstate() = 0)
- {
- lockstring := "{FF2800}Nein{" dlov_color "}"
- }
- else if(getvehiclelockstate() = 1)
- {
- lockstring := "{00EA00}Ja{" dlov_color "}"
- }
- if(getvehicleenginestate() = 0)
- {
- enginestring := "Aus"
- }
- else if(getvehicleenginestate() = 1)
- {
- enginestring := "An"
- }
- }
- else if(dlov_style = 1)
- {
- if(getvehicleenginestate() = 0)
- {
- enginestring := "Aus"
- }
- else if(getvehicleenginestate() = 1)
- {
- enginestring := "An"
- }
- if(getvehiclelockstate() = 1)
- {
- lockstring := "{00EA00}Geschlossen{" dlov_color "}"
- }
- else if(getvehiclelockstate() = 0)
- {
- lockstring := "{FF2800}Offen{" dlov_color "}"
- }
- }
- if(getvehiclehealth() >= 800)
- dlvalue := "{00EA00}" getvehiclehealth() "{" dlov_color "}"
- else if(getvehiclehealth() < 800) && (getvehiclehealth() >= 500)
- dlvalue := "{FF9600}" getvehiclehealth() "{" dlov_color "}"
- else
- dlvalue := "{FF2800}" getvehiclehealth() "{" dlov_color "}"
- if(dlov_style = 0)
- dlstring := "" dlvalue " DL`nMotor: " enginestring " | Locked: " lockstring ""
- else if(dlov_style = 1)
- dlstring := "" dlvalue " DL`n" lockstring "`n" enginestring ""
- if(dlov = -1)
- {
- if(dlov_style = 0)
- dlov := TextCreate(dlov_font, dlov_size, true, false, dlov_x, dlov_y, dlov_col, dlstring, false, true)
- else if(dlov_style = 1)
- {
- dlov := TextCreate(dlov_font, dlov_size, true, false, dlov_x, dlov_y, dlov_col, dlstring, false, true)
- sleep 75
- dlov_graf1 := ImageCreate("car.png", dlov_x-8, dlov_y, 0, 0, true)
- sleep 75
- dlov_graf2 := ImageCreate("key.png", dlov_x-8, dlov_y+8, 0, 0, true)
- sleep 75
- dlov_graf3 := ImageCreate("engine.png", dlov_x-8, dlov_y+15, 0, 0, true)
- sleep 75
- dlov_line := LineCreate(dlov_x-10,dlov_y-1,dlov_x-10,dlov_y+23,2,0xFF00B9FF,true)
- }
- }
- if(TextSetString(dlov, dlstring) == 0)
- {
- TextDestroy(dlov)
- dlov := -1
- if(dlov_style = 1)
- {
- imagedestroy(dlov_graf1)
- imagedestroy(dlov_graf2)
- imagedestroy(dlov_graf3)
- linedestroy(dlov_line)
- dlov_line := -1
- dlov_graf1 := -1
- dlov_graf2 := -1
- dlov_graf3 := -1
- }
- }
- }
- else
- {
- TextDestroy(dlov)
- dlov := -1
- imagedestroy(dlov_graf1)
- imagedestroy(dlov_graf2)
- imagedestroy(dlov_graf3)
- linedestroy(dlov_line)
- dlov_line := -1
- dlov_graf1 := -1
- dlov_graf2 := -1
- dlov_graf3 := -1
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement